Click here to Skip to main content
15,888,984 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have developed a website in localhost and I have entered almost all the data to MySQL DB in localhost environment. Now, I have purchased the domain and hosting space. Now, I want to host my site to Production Environment.
The Problem is, I don't know how to move the MySQL DB Data from localhost to Production Environment.


Can some one help me??
Posted

well, i think the one way is run the same SQL scripts that you used in localhost (if you created your database using queries) on your production environment. I am not sure whether MySQL has something which SQL Server has which is an ability to generate SQL scripts from physical tables.

OR, the other way is take a backup of your database in localhost and then restore it on live using that backup file. See if this helps: MySQL Backup and Restore[^]

Cheers....
 
Share this answer
 
Comments
rashidfarooq 15-Oct-11 9:47am    
Thanks for answering. Let me try this back up method.
Read the following on the subject :
mySql backup methods
 
Share this answer
 
Comments
rashidfarooq 15-Oct-11 9:47am    
Thanks for answering. Let me try this back up method.
you can backup your local database and restore it in the production environment. for more info please google it as ...mysql backup and restore, you will have plenty of articles
 
Share this answer
 
Comments
rashidfarooq 15-Oct-11 9:48am    
Thanks for answering. Let me try this back up method.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900