时间:2021-07-01 10:21:17 帮助过:19人阅读
http://www.cnblogs.com/kissdodog/p/4174421.html
备份:mysqldump -u username -p dbname > BackupName.sql
还原:mysql -u root -p [dbname] < backup.sql
//定时备份
crontab定时
30 04 * * * /data/dbbackup/dbmysqldump.sh
dbmysqldump.sh
mysqldump -uroot -piyenei123 wdb_pro > /data/dumpbak/wdb_pro_$(date +%Y%m%d_%H%m%s).sql
mysql数据据备份与还原
标签:ssd back dog html blog class htm backup mysqldump