Newsletter

Get my very best Tips, Exclusive Promotions, Reports and Mailings!
Sign up and get a free copy of my eBook The Affiliate's Start Guide, learn how to create a website and start making money online!

Most Popular Articles

    None found

Subscribe

RSS

TwitterCounter for @bomega

How To Migrate A WordPress Blog

Written by

Hey mates, some weeks ago I changed my hosting and I had to move all my websites from the old hosting to the new one. May be it’s seem like an easy task but it’s not when you are involved with databases.

The problem I got when I was moving this blog was related with its databases. I followed the steps recomended by almost every hosting but without reason, the procedure failed many times… So I decided to stop following those steps and do it my way.

Migrating a WordPress Blog

The following one is a list of steps, that you should follow to change your wordpress blog of hosting successfully:

  1. Backup your data: First of all, you need to make a backup of your blog. You can do this by connecting via FTP and downloading everything in the root directory of your wordpress installation, i.e. download everything in /public_html/ or /public_html/blog, or wherever your installed wordpress. Save all those folders and files into a folder on your computer.
  2. Backup your databases: This is where the recommendations of the hostings are wrong. First, log into your cpanel and go to phpMyAdmin and when it loads, click Export. After that, select the database you want to export – in this case the one which manages wordpress. By default there will be some options selected: export as SQL, Add IF NOT EXISTS, Add AUTO_INCREMENT value, Enclose table and field names with backquotes, Complete inserts, Extended inserts and Use hexadecimal for BLOB.
  3. Save the database: You should not change any of the options mentioned in the step 2, it’s not necessary. I read in many websites that you should check “Add DROP TABLE / VIEW / PROCEDURE / FUNCTION” but that’s totally false! If you check that you won’t be able to import your database in the near future… So after verifying all those settings, check Save As File and press GO. Don’t check any related with compression.
  4. Change wp-config.php: This file contains basic configurations of your wordpress blog. Open it in your computer and change the info related with your database name and password, user etc etc… Otherwise you will get an error of database once you upload it to the new server.
  5. Upload your blog to the new hosting: Congratulations! You backed up your data from your old hosting with success, but this not ends here. Now, upload all those folders and files which you downloaded in the step 1 to the new hosting. Where to upload it? In the same directory it was in the old hosting!.
  6. Create a new database: Log into the cpanel of the new hosting and go MySQL Databases. Create a new database (it will the one which will handle your blog in this new server… if you want, you can give it the same name of the old database). Add a new user to that new database with full privileges.
  7. Import your old database: Go to phpMyAdmin. Then click import, selecting the database you want to fill in. In this case, select the database created in the step 5. Select the database from your computer and then change the Character from utf8 to latin1 and then press GO. Why to latin1? In order to verify this, open the backup of your database on your computer with a notepad or another text processor and search for the word “Character”. You will see the character type of your database, which is latin1 for default. Note: If your character type is another one different of latin1, you should select it in phpmyadmin or you will fail importing the database.
  8. Change the nameservers: If everything is right, then you should go into your domain manager (godaddy or whatever…) and change the nameservers of your domain to point it to the new hosting. Once you do that, your domain will be bouncing between the old host and the new one, and that could take some days, it’s not instantaneously.

Recommendations

Due to the nameservers bouncing, I highly recommend you NOT to alter anything on your blog: add a new post, comment, plugin… Why? Because you won’t know if you edited the blog of the new hosting or of the new one.

When I did it some weeks ago, I had the wonderful idea of publishing a new post and the next day, many people sent me an email reporting a 404 error. They tried to visit the post through their RSS feed but they got and error because in the new server, that link didn’t exist!. For my luck, I copied/pasted the post from my Google Reader and I published it again ( yes, I’m subscribed to my own feed in order to see how things look lol ).

Also, remember that you can contact your hosting/domain manager if you have any problem – Good luck!


RSS feed | Trackback URI


15 Responses to “How To Migrate A WordPress Blog”

Comment by David Hobson | 22 Dec 2008 at 15:29

Nice post for people moving there blog to a new server for the first time. I have moved blogs loads of times now and can now do a transfer in under 10mins due to having a good internet connection speed.

David Hobsons last blog post..Traffic Generation Part 10 – Press Release Distribution

 
Comment by Trevor - 14 Year Old Money Blogger | 22 Dec 2008 at 16:02

I’ve done this a few weeks ago on my test website.

Hopefully this helps someone!

 
Comment by Blog Expert | 22 Dec 2008 at 16:17

Good SEO post. Traffic for you.

Blog Experts last blog post..8 More Kick-Ass Blog Headlines

 
Comment by Online Home Based Business | 22 Dec 2008 at 22:18

I will sticky this post for when i move servers :smile: , helpful tips , thanks.

 
Comment by Dennis Edell | 23 Dec 2008 at 20:23

Excellent step by step., by why didn’t you just have your new host do it? They should if they are reliable.

Btw, subscribing to your own feed/newsletter is a must! ;)

Dennis Edells last blog post..What Criteria Factors Into Your Link Love/Round-Up Posts?

 
Comment by Archie Pennies | 25 Dec 2008 at 03:27

Hi Javo interesting article. I build most of sites with WordPress sometimes with Joomla but if if I continue building sites I will probably have to move some out of were they are because of too much CPU consumption I already have two hosting accounts. Where are you hosting Mr.Javo.com now?

Archie Penniess last blog post..Long Tail Keywords: SEO Urban Legend or Buried Diamonds?

 
Comment by Archie Pennies | 25 Dec 2008 at 03:31

Javo I forgot to mention: Feliz Navidad!!! May this new year double your online earnings!

Archie Penniess last blog post..Long Tail Keywords: SEO Urban Legend or Buried Diamonds?

 
Comment by Tom At The Home Business Archive | 31 Dec 2008 at 12:12

Yep, backing up your data is the single most important task you have.I purchased a USB-harddrive just for this reason. When I moved to another webhost they did the blog migration for me.

Tom At The Home Business Archives last blog post..How To Get Your Opt In Subscribers To Trust You Quickly

 
Comment by Big Blogger | 7 Jan 2009 at 08:19

For my luck, I copied/pasted the post from my Google Reader and I published it again

Another technique that saved my ass a couple of times when I screwed up things without prior backing up, was going on Google ed copying from the cached page.

ciao
alex

Big Bloggers last blog post..How To Increase Your Newsletter Subscribers With a Delayed Popup

 
Comment by Mike Collins | 11 Jan 2009 at 18:09

Thanks for the tips. I’m in the process of moving a couple of my WP sites and this will come in handy.

Mike Collinss last blog post..Sharing My Game Plan For 2009

 
Comment by Motorcycle Trader | 12 Jan 2009 at 03:33

Great tutorial.I will need to do this pretty soon, so glad you made time to share this!:)

 
Comment by The Blogger Source | 24 Feb 2009 at 20:56

Very good step by step as people probably do this quite often.

The Blogger Sources last blog post..15 Tips To Get More RSS Subscribers

 
Comment by HÃ¥vard Magnussen | 24 Jan 2010 at 18:29

Saved my day! Worked like a charm!

 

CommentLuv badge

Trackback responses to this post

  • Buy Cheap cost zyban Online 24/Online Pharmacy. Top Online Pharmacy.
  • Buy Cheap cialis where Now Best Drugstore. 100% Satisfaction Guaranteed.
  • Buy Cheapest cheap xanax overnight delivery Now Cheap Prescription Drugs. Best Prices.
  • Buy Cheapest 2mg xanax Online Best Online. Buy Medications Online.
  • Buy Cheap erythromycin cheap Now Top Online Pharmacy. No Prescription Needed.
  • Buy Cheap pain disorders Now Discount Pharmacy Online. Online Medical Shop.
  • Buy Cheapest buy medication without a prescription Online Pharmacy Store. WorldWide Shipping.
  • Buy Cheap cheap viagra jelly Now Pharmacy Store. 100% Satisfaction Guaranteed.
  • Buy Cheapest levitra onlines Now Internet Prices For levitra onlines! Best Drugstore.
  • Buy Cheap wholesale diet supplements Online Discount Pharmacy Online. Best Prices.
  • Buy Cheap stress buy sell price med anxiety Now Discount Pharmacy Online. Top Online Pharmacy.
  • Buy Cheapest what diet pills really work Now Low Prices. Special Prices For what diet pills really work!
  • Buy Cheap weight loss tablets Online Low Prices. Order Cheap Meds Without Rx.
  • Buy Cheap cialis canada pharmacy Online Free Viagra Pills! Online Medical Shop.
  • Buy Cheap cialis for sale Online Cheap Online Pharmacy. Top Online Pharmacy.
  • Buy Cheap get klonopin Now Special Prices For get klonopin! Pharmacy Store.
  • Buy drugs prescribed for depression Online Without Prescription. Best Prices. Best Online.
  • Buy Cheap plavix 75mg Online Online Medical Shop. WorldWide Shipping.
  • Buy Cheapest viagra half price pharmacy Online Pharmacy Store. Cheap Online Pharmacy.
  • Buy Cheap vigrx cheap Now Order Cheap Meds Without Rx. Best Prices.
  • Buy Cheapest buy viagra cheap Online Best Online. 24/Online Pharmacy.
  • Buy Cheap lipitor contraindications Now Top Online Pharmacy. Guaranteed Shipping.
  • Buy Cheapest cialis recreational use Online Top Online Pharmacy. Best Online.
  • Buy Cheap texas vardenafil levitra hcl Now WorldWide Shipping. No Prescription Needed.
  • Buy Cheap on line ambien Now No Prescription Needed For Drugs. Low Prices.
  • Buy Cheap uk impotence problems Now WorldWide Shipping. Online Medical Shop.
  • Buy Cheapest accutane dosage Online Special Prices For accutane dosage! Best Online.
  • Buy Cheap what is propecia Online 24/Online Pharmacy. Best Internet.
  • tramadol purchase Online Without Prescription Best Prices. WorldWide Shipping.
  • Buy Cheap lexapro antidepressant Now Best Online. Internet Prices For lexapro antidepressant!
  • Buying Cheapest cheapest diet pill. Offshore Pharmacy, Good Prices. Low Prices.
  • Buy Cheap zolpidem Now Pharmacy At The Best Price! Best Drugstore.
  • Buy Cheap online vitamins Online Free Viagra Pills! Buy Medications Online.
  • Buy Cheapest internet prescriptions phentermine Now Cheap Prescription Drugs. Best Drugstore.
  • Buy Cheap diazepam Now Best Drugstore. Top Online Pharmacy Supplier.
  • Buy Cheapest mexican online pharmacies Now Pharmacy Store. Cheap Prescription Drugs.
  • Buy Cheap viagra for sale Online Cheap Online Pharmacy. Top Online Pharmacy.
  • strong over the counter diet pills Online Without Prescription WorldWide Shipping. Best Prices.
  • Buy Cheapest xanax from the us no prescription Online Cheap Prescription Drugs. Best Prices.
  • Buy Cheapest cod tramadol Now Best Online. Internet Prices For cod tramadol!
  • Buy Cheap wholesale viagra Now Best Prices. Order Cheap Meds Without Rx.
  • Buy Cheap fluconazole 150mg Online Free Viagra Pills! 24/Online Pharmacy.
  • Buying Cheap valium no prescrption fedex. Mexican Pharmacy, Best Prices. Best Drugstore.
  • Buying Cheapest viagra sildenafil. Mexican Pharmacy, Best Prices. Best Prices.
  • Buy Cheapest india online pharmacy Now Best Drugstore. 24/Online Pharmacy.
  • Buy Cheap diet aid Online Buy Medications Online. Best Online.
  • Buy Cheap levitra result Online Best Prices. Buy Medications Online.
  • Buy Cheapest sublingual sildenafil Now No Prescription Needed. Free Viagra Pills!
  • Buy Cheapest ayurvedic weight loss products Online Best Online. Guaranteed Shipping.
  • Buy Cheap sertraline hcl Online Best Online. 100% Satisfaction Guaranteed.
  • Buy Cheap no prescription zolpidem Online Online Medical Shop. Cheap Pharmacy Online.
  • Buy Cheap anxiety meds online Now Best Drugstore. The Largest Internet Pharmacy.
  • Buy Cheapest cialis prescriptions Online Best Drugstore. WorldWide Shipping.
  • Buy Cheap shop ambien Now Discount Pharmacy Online. Free Viagra Pills!
  • Buy Cheapest ambien side effect Now Internet Prices For ambien side effect! Best Internet.
  • Buy Cheapest ambien cheap generic Online Online Medical Shop. Pharmacy Store.
  • Buy Cheap cheap xanax over the internet Now Best Internet. The Largest Internet Pharmacy.
  • Buy Cheapest order pharmacy tramadol Now Best Drugstore. No Prescription Needed.
  • Buy Cheapest effexor xr 75mg Now Low Prices. Top Online Pharmacy Supplier.
  • Buy Cheap canadian infertility Now Online Medical Shop. Online Prices For canadian infertility!
  • Buy Cheap cialis information Online Best Prices. Pharmacy At The Best Price!
  • Buy Cheap anti depression pills Online Low Prices. 100% Satisfaction Guaranteed.
  • cheapest place buy viagra online Online Without Prescription WorldWide Shipping. Best Online.
  • Buy Cheap diflucan cost Online Online Medical Shop. Best Drugstore.
  • Buy Cheapest phentermine wordwide shipping online Online Best Online. Online Medical Shop.
  • canadian pharmacy mail order Online Without Prescription Free Viagra Pills! Best Online.
  • Buy Cheapest discount medication Online Cheap Pharmacy Online. Best Prices.
  • Buy xenical testimonies Online Without Prescription. Best Online. Best Prices.
  • Buy Cheapest lowest prices for professional cialis Online Best Internet. Top Online Pharmacy.
  • Buy Cheap generic form of viagra Online Best Online. 24/Internet)(safe Pharmacy.
  • Buy Cheapest norvasc online Now Best Prices. Internet Prices For norvasc online!
  • Buy Cheap pain killer no prescription mexico Online Drugs, Health And Beauty. Best Internet.
  • Buy Cheapest purchase prescription drugs without a rx Online Best Online. Special Prices For purchase prescription drugs without a rx!
  • Find The Latest News And Information About parasitic helminths Pills Low Prices.
  • Buy Cheap legal fat burner Now Discount Online Pharmacy. Top Online Pharmacy.
  • Buy Cheap free diet pill Now Top Online Pharmacy Supplier. Best Prices.
  • Buy Cheap cheap appetite suppressant Now WorldWide Shipping. No Prescription Needed.
  • Buy Cheap muscle relaxant side effects Online Internet Prices For muscle relaxant side effects! Best Prices.
  • Buy Cheap uk cialis Now Pharmacy Store. Online Prices For uk cialis!
  • Buy Cheapest order appetite suppressants online Online Low Prices. Special Prices For order appetite suppressants online!
  • Buy Cheapest recreational sex levitra Online Best Internet. Drugs, Health And Beauty.
  • Buy Cheapest pain meds online mexico Online Buy Medications Online. Best Prices.
  • Buy Cheapest no prescription lorazepam Now Best Online. Special Prices For no prescription lorazepam!
  • Buy Cheapest hair loss products Online Guaranteed Shipping. Free Viagra Pills!
  • Buy Cheapest tramadol and pregnancy Online Best Prices. Cheap Online Pharmacy.
  • Buy Cheap overseas phentermine Now Pharmacy At The Best Price! Best Internet.
  • Buy Cheap klonopin withdrawl Now Top Online Pharmacy. Discount Pharmacy Online.
  • Buy Cheap cialis supplier Now Best Internet. Internet Prices For cialis supplier!
  • Buy Cheapest phentermine without rx Online Order Cheap Meds Without Rx. Low Prices.
  • Buy Cheapest discount drug stores Online Pharmacy Store. WorldWide Shipping.
  • valium generic name Online Without Prescription Best Prices. Best Online.
  • Buy Cheap ativan pills Online Low Prices. Drugs, Health And Beauty.
  • Buy Cheapest drug prescription ultram Now No Prescription Needed. Best Drugstore.
  • Buy Cheap vitamin stores Now Cheap Online Pharmacy. Guaranteed Shipping.
  • Buy Cheap eli lilly cialis Online Best Prices. Internet Prices For eli lilly cialis!
  • Buy Cheapest cialis cost Online Cheap Online Pharmacy. Best Internet.
  • Buy Cheap prescription appetite suppresant Online Drugs, Health And Beauty. Best Internet.
  • Buy Cheap transformations weight loss Now Special Prices For transformations weight loss! Free Viagra Pills!
  • Buy Cheapest valium interactions Online Cheap Online Pharmacy. Best Internet.
  • Buy Cheapest ultram controlled substance Online Best Internet. WorldWide Shipping.