There Are Many Ways To Transfer Your WordPress Blog From On Host To Another. But Here Is The Simplest Way To Transfer Your WordPress Blog Without Loosing Any Of The Search Engine Juice.
Follow The Following Steps For Transfering Your WordPress Blog To New Host.
Backup Your WordPress Database Using Phpmyadmin
First Thing First, Make A Backup Of Your Database Using Phpmyadmin. Once You Have Successfully Logged Into Phpmyadmin (Cpanel -> Mysql -> Phpmyadmin) , Click On The Name Of The Database Which Contains Your WordPress Blog. Then Click On Export In The Main Navigation Area, Within The Export Screen You Must Complete The Following Steps:
• Click On ’Select All’ And ‘SQL’ From The Export Menu
• Select ‘Add Drop Table’, ‘Add Auto_Increment Value’ And ‘Enclosure Table And Field Names With Blackquotes’ From The Structure Menu
• Select ‘Complete Inserts’ And ‘Use Hexadecimal For Binary Files’ From Data
• You Can Leave All The Other Values At Their Defaults
Once All Those Settings Are Selected You Simply Click On ’Save As File’, This Will Download A Filenamed WordPress.Sql To Your Desktop. And That Is That. You Have Successfully Backed Up Your Database.
If You Don’t Have Phpmyadmin Installed On Your Hosting Account, You Can Use Mysqldump From A SSH Terminal.
Download/Upload All Your WordPress Files Using FTP.
You Will Need To Download ALL Your Files From Your Old Host And Upload Them To Your New Host. This Includes Files From Your Themes Folder And Plugins Folder. Make Sure You Also Download Any Folders Which Were Referenced Outside Of Your Blog Folder. For Example I Use A Seperate Folder Called ‘Images’ Which Is Located Outside Of ‘Blog’. If I Didn’t Copy And Upload This Folder To My New Host I Would Have A Lot Of Broken Links To Images Within My Blogpost. This Is Not A Pretty Sight.
The FTP Client I Use Is Filezilla. By Default Filezilla Does Not Display Your .Htaccess File, Probably For Security Reasons But I’m Not Too Sure. To Ensure That Your .Htaccess File Is Included In Your Download You Must Click On ‘View’ And Then Enable ‘Show Hidden Files’. If You Neglect To Upload Your .Htaccess File Then Your Permalinks Will Get Screwed Up. That Is Of Course If You Are Using Permalinks.
Please Note That You Should Not Take This Oppurtunity To Update To A Newer Version Of WordPress. Your Database May Not Sync’ As A Result. Complete Your Migration Before You Consider Upgrading.
Edit Wp-Config.Php And Create A New WordPress Database.
First, Head To Your Control Panel And Click The Mysql Databases Icon. You Need To Create A New Database With A Name Appropriate For Your Blog. Also, You Will Need To Create A Database Username And Password. Finally, Assign The New User To The New Database And Grant “All Privileges”.
Okay, So We Are Nearly There. You Must Now Edit Wp-Config.Php To Include The Database Settings Of Your New Database.
/** The name of the database for WordPress */
define(‘DB_NAME’, ‘cpuser_dbname’);/** MySQL database username */
define(‘DB_USER’, ‘cpuser_uname’);/** MySQL database password */
define(‘DB_PASSWORD’, ‘******’);/** MySQL hostname */
define(‘DB_HOST’, ‘localhost’);
Once You Have Edited The File With Your New Database Settings, Upload It To The Root Of Your Blog Folder (Unless You Edited The File On The Server).
So Now Everything Is Set, Except That Your New Database Does Not Contain Any Database Tables.
Import Your WordPress Blog To Your New Database.
You Can Use Either Phpmyadmin To Import Your Database Or You Can Use Bigdump. Bigdump Is The Preferred Option If You Have A Large Database (10mbs Or More). There Is A Step By Step Guide On How To Use Bigdump On Their Website.
Once You Have Logged In, You Can Choose Between Two Methods To Complete The Import. You Can Click On ‘SQL’ And Run A Query Or You Can Use The ‘Import’ Link To Upload Your WordPress.Sql File Into Your Database. I Recommend Using The Former As The Query Can Take Some Time And Can Sometimes Crash Your Browser. Using The Import Feature Seems To Be A Lot Less Strenuous On The Browser.
Source: Hostgator Support