压缩备份:

1.mysqldump -h localhost -u root -p dbname | gzip > dbname.sql.gz

 

压缩恢复:

1.gunzip < dbname.sql.gz | mysql -h localhost -u root -p

posted on 2015-06-26 14:50  统一B界  阅读(187)  评论(0编辑  收藏  举报