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