從google上找來的
最近要認真作些備份的動作
當然,回存更重要。這方面的資料等我有空的時候再去找
"How to backup MySQL
This is more for me, than anything. It is useful for anyone using MySQL databases, though.
Here is the command you run in a shell client, to backup your MySQL database.
/usr/local/bin/mysqldump --complete-insert --add-drop-table --lock-tables --user=USERNAME --password=PASSWORD DATABASE_NAME > FILENAME.sql
Obviously replace USERNAME, PASSWORD, DATABASE_NAME, and FILENAME with the proper values."
TooMuchSexy.blog: How to backup MySQL