Migrate a MySQL Database to another server





4
Date Submitted Mon. Sep. 18th, 2006 5:08 AM
Revision 1 of 1
Helper nothingless
Tags forcodegrrl | ssh
Comments 0 comments
Use the below in SSH to move a MySQL database between servers. Super handy if the database is larger than 7MB and you can't use phpMyAdmin.

mysqldump -h oldhost -u oldusername -poldpassword olddbname | mysql -h newhost -u newusername -pnewpassword newdbname     
 

Comments

There are currently no comments for this snippet.

Voting

Votes Down