Skip to content

Instantly share code, notes, and snippets.

@huacnlee
Created August 3, 2010 01:10
Show Gist options
  • Save huacnlee/505638 to your computer and use it in GitHub Desktop.
Save huacnlee/505638 to your computer and use it in GitHub Desktop.
# mysql 完整备份数据库
# -uroot(root是用户名 -u与root之间没空格) -p123123 (123123是密码 -p与123123之间没空格)
mysqldump -uroot -p123123 --databases pasite > $BACKUP_PATH/pasite.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment