How to migrate Magento Website from local server to live server

Consider you are familiar with database creation user assigning and and import database from local server to live server. Now I am discussing  the most important steps which you can be useful for rapid magento migration to local server to live server within minuet without any problem.

Before import the database you should add follow code to top of the sql dump file (this because most of online db srvers check forign keys before importing db this can be a error for importing magento db)
SET FOREIGN_KEY_CHECKS = 0;
Then create a database and upload the sql dump to the server, remember or note down the database credentials
Upload the all local files to the server using ftp or cpanel file manager.  After uploaded all tihings. delete the folder named var on server.
Delete the app/etc/local.xml file from the server.
Now go to site url and you will  get an installation wizard. Actually it gets the old data confgure the store. in there steps you should give the about database and other users informations as the magento installation wizard.
After finish this you will see the magento site which extractly same as local

I think it will help you.