• cbiweb

    (@cbiweb)


    I’ve had to take over as Webmaster for a site whose original Webmaster passed away recently. This has resulted in a transition period for the owner of the site. Part of this process has been for me to move the site to another server.

    Everything has gone well, but at this point when I try to open the site in a browser, all I get is this message:

    Cannot connect to database server

    There is nothing else to that message, and no emails are automatically sent to my address with further information.
    I have checked wp-config.php, and everything is correct.

    What else should I check?

    • This topic was modified 4 years ago by t-p. Reason: Moved to Fixing WordPress from Installing WordPress

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator t-p

    (@t-p)

    Thread Starter cbiweb

    (@cbiweb)

    Good reading but doesn’t offer any suggestions that I haven’t already tried. 🙂

    The odd part is I can still access wp-admin.

    Moderator t-p

    (@t-p)

    Part of this process has been for me to move the site to another server

    Did you follow this guide?

    Moving WordPress

    If not, please review and see if anything at miss.

    You may also want to discuss this issue with your new hosting provider.

    Dion

    (@diondesigns)

    If you add the following two lines to your wp-config.php file:

    define('WP_DEBUG', true);
    define('WP_DEBUG_DISPLAY', true);

    WordPress will display the full error message generated by MySQL. The WP_DEBUG constant should already be in your wp-config.php file; change it to true if it’s set to false, and add the second line immediately after it.

    Once you debug the issue, remove the second line.

    For what it’s worth, getting that error message intermittently is almost always due to MySQL being overloaded.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Error message: Cannot connect to database server’ is closed to new replies.