Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Migrate A MySQL Database To Another Server

DZone's Guide to

Migrate A MySQL Database To Another Server

·
Free Resource
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     


http://wiki.dreamhost.com/index.php/Migrate_MySQL
Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}