MySql备份测试

MySql备份测试,
1.如果想备份到指定目录,只需要
Mysqldump test >/路径/备份文件名.sql
2.如果想压缩备份可以
%mysqldump samp_db | gzip >/usr/archives/mysql/samp_db.1999-10-02.gz 
3.如果想单独备份表,可以
%mysqldump samp_db student score event absence >grapbook.sql 
%mysqldump samp_db member president >hist-league.sql 


你可能感兴趣的:(MYSQL)