• Had the system running fine on one server. But we had to change servers, windows 2008 to Windows 2012

    Using microsoft web platform installer for IIS. everything is command line, MAMP is so much better.

    https://codex.wordpress.org/Moving_WordPress I have read this so many times, did each step very carefully.

    copied the original database, modified the path and saved, then got the 404 error, saved the database again.

    in the new server I made the wordpress install with the same name and it setup then gets to the 5 minute setup page. I stopped there and copied across the old server files and then added the database with the name of my old database then copied it across mysql -u root -p dbname < oldfile.sql

    and it took it. go into the browser? error unable to establish database connection

    this is all I can get right now

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

    (@t-p)

    “Error establishing a database connection” means that there is a problem with the connection to your database
    – a problem with the credentials stored in the wp-config.php file not matching what mysql expects.
    – Try reviewing the following codex for some guidance: http://codex.wordpress.org/Common_WordPress_Errors#Error_Establishing_Database_Connection

    Thread Starter rogersb

    (@rogersb)

    I just do not get the import of the database.

    I make a clean new install of wordpress. and I have the old site’s database and I saved it per procedures into a file.sql

    I went into the wp-config.php file and copied across the login for THAT database, but there are other databases there, and the root password is there also.

    just do not understand what the different parts are. editing the config file did not work and I dont know how to check it or what to look for,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Trouble trying to migrate WordPress site to new server’ is closed to new replies.