Skip to content

Instantly share code, notes, and snippets.

@georgboe
Created July 24, 2011 13:53
Show Gist options
  • Save georgboe/1102634 to your computer and use it in GitHub Desktop.
Save georgboe/1102634 to your computer and use it in GitHub Desktop.
Move MySQL Databases From One Server to Another
mysqldump --add-drop-table --host=ipaddress --user=root --password=your.password --all-databases > sqldump.sql
mysql --host=localhost --user=root -p < sqldump.sql
mysql_upgrade --force --password=password
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment