Error connecting to database

Hello!

Occassionally, I get an "Error connecting to database" error on this site. I cannot update the server to PHP 7 because there are other Drupal sites being hosted there and they break if I do that.

Can you help?

  • Ash
    • WordPress Hacker

    Hello Rebecca Woodmass

    If you find error connecting to the database, then please check the following:
    1. Database name is correct
    2. DB username is correct
    3. DB password is correct
    4. DB host name is correct
    5. Important: DB user has permission to access the database. This is usually done by cPanel > MySql databases > Add user to database section.

    Please let us know how it goes.

    Have a nice day!

    Cheers,
    Ash

  • Ash
    • WordPress Hacker

    If the error doesn't happen consistently, means sometimes it works, then I think the issue is with database server. If the database server goes down, you will see the same message.

    Would you please talk to your host if they have any record of that? Have a nice day!

    Cheers,
    Ash

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.