wordpress import problem

Out of context: Reply #1

  • Started
  • Last post
  • 6 Responses
  • mantrakid0

    Do you have access to the raw MySQL database on the old and new hosting spots? Best way to transfer, in my opinion, is to duplicate the database (export old one from phpMyAdmin or whatever, drop all the tables in the new one, then import the old database to the new database to setup the clone).

    Once it's cloned, your paths will still be wrong (pointing to the old paths) so I use this script: http://pastebin.com/yPs6eCrU

    1. Upload the script to your root directory on the NEW wordpress site
    2. run the script
    3. go through the steps until the search/replace page
    4. search for the old path (ie dev.yoursite.com/wordpress) and replace with the new path (www.yoursite.com) and it will go through and make the appropriate changes.

    First time you do it you'll likely be careful so it will take longer, but I can honestly get a full wordpress duplicate setup in under a minute. The only part that takes long is re-uploading the files if you have to go to a different server entirely (instead of just moving to a new path on the same server).

View thread