1、備份整個數據庫(估計也是最土的方法了)
mysqldump?--user=user?--host=host?--port=port --password=password?dbname?>?filename.sql
- 如果沒有指定 host和port參數,則客戶端會連向localhost的mysql server。
- 如果要備份多個數據庫,則可添加參數 --database, 例如 --databases db1 db2
- 要備份數據庫需要必要權限
2、備份整個數據庫相應的恢復方法:
mysql?--user=user?--host=host?--port=port?--password=password?dbname?<?filename.sql
(未完待續,尚在研究中~)
posted on 2007-09-21 21:47
Jeff Lee 閱讀(163)
評論(0) 編輯 收藏 所屬分類:
database