Support » Installing WordPress » Switched Servers Not Working

  • We switched servers and upgraded at the same time. We now have the latest version of PHP (4.4.1) on our server. When we went to pull up the blog we received:

    Error establishing a database connection
    This either means that the username and password information in your wp-config.php file is incorrect or we can’t contact the database server at localhost. This could mean your host’s database server is down.

    Are you sure you have the correct username and password?
    Are you sure that you have typed the correct hostname?
    Are you sure that the database server is running?
    If you’re unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress Support Forums.

    The database is running correctly, the passwords haven’t been changed. What are we missing? We are at We even deleted all the files and reinstalled them.

    Maybe we are just groggy from the move…


Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator James Huff


    When you moved the blog files to a different server, did you move the database too? Or, is it still on the other server?

    The database is on the new server. We moved over everything nothing is left on the other server.

    Is “localhost” the DB hostname on the new server, too? Some host companies have different server names…

    Yep localhost is the same. We are with the same server/host company. We just upgraded to a better server.

    Moderator James Huff


    Hm, can you safely install a new blog? If not, then that would suggest an overall problem with either Apache, PHP, or MySQL. There have been a few recent reports of problems caused by PHP upgrades, during which the hosting company has forgotten to re-compile certain modules, such as eAccelerator.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Switched Servers Not Working’ is closed to new replies.