Created
May 2, 2016 02:32
-
-
Save z2015/45b21f0af43536d727967ed152a9c3d4 to your computer and use it in GitHub Desktop.
mysql备份还原操作命令
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mysqldump -u username -p database_to_backup > backup_name.sql | |
| mysql -u username -p | |
| CREATE DATABASE database_name; | |
| exit | |
| mysql -u username -p database_name < backup_name.sql | |
| //https://www.digitalocean.com/community/tutorials/how-to-backup-mysql-databases-on-an-ubuntu-vps |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment