WordPress.org

Ready to get started?Download WordPress

Forums

Moving WP install and DB (5 posts)

  1. OpenEars
    Member
    Posted 2 years ago #

    I am trying to move WordPress and DB to a new server with a new domain name. I've been trying this for weeks, so before proceeding this time I want to ask the community's input. Here's what I think I should do:

    1. Back up existing database on http://www.serverOne.com.
    2. Import this database, via PHPmyAdmin, to http://www.serverTwo.com
    3. Copy WP files to my computer.
    4. Upload WP files to serverTwo.com.
    5. Edit wp-config to reflect new URL.

    Am I missing something? Since I am importing the existing DB, will the DB name and password info in my wp-config need to be changed?

  2. See this article.

    http://codex.wordpress.org/Moving_WordPress#When_Your_Domain_Name_or_URLs_Change

    2. Import this database, via PHPmyAdmin, to http://www.serverTwo.com

    On www.serverTwo.com use a search and replace tool to modify all the URL references from http://www.serverOne.com to http://www.serverTwo.com.

    This one works really well on the new server, as it also takes care of the serialized PHP strings too. Just remember to delete it when you are done.

    http://interconnectit.com/124/search-and-replace-for-wordpress-databases/

  3. OpenEars
    Member
    Posted 2 years ago #

    Whew! Thank you, but maybe I can back up a little to explain:

    I have resorted to trying to import my existing DB because I am unable to install WordPress on the new server in the first place: I have edited the wp-config file with the DB name, username, and password (which were created for me), but when I go to the URL of the 'vanilla' install, I get an ERROR 500 message. If I go to the admin address I get a 403 Forbidden message. I suspect something is incorrect with the DB that was set up, and thought I could side-step this by importing the DB and the existing WP files all at once. Does this make any sense at all?

    On this server, I do not have permissions to create a new DB, even though I have access to phpMYadmin...

  4. I am unable to install WordPress on the new server in the first place

    Ah. Well yes, then those other steps wouldn't work. ;)

    On www.serverTwo.com get a plain, fresh and empty installation on WordPress first. An installation with no plugins or new theme shouldn't toss any 500 errors.

    On this server, I do not have permissions to create a new DB, even though I have access to phpMYadmin...

    You should be able to import the .sql file backup into the new DB without changing it's name. You may need to speak with your host and ask them what's going on.

    If that doesn't work and www.serverOne.com is still online then try exporting to WXR and import that file into WordPress on www.serverTwo.com. Assuming you can get WordPress running there...

  5. OpenEars
    Member
    Posted 2 years ago #

    Thank you so much! I will try importing the DB (following your advice above). It has been weeks of headaches, so if I still can't get an empty WordPress install on serverTwo.com, then I'll get in touch with the admin here and (sigh) ask him to help out.
    Thank you!

Topic Closed

This topic has been closed to new replies.

About this Topic