摘要: ###1、拼接分库备份语句 #取出库名列表 $ mysql -uroot -p123 -e "show databases;"|egrep -v "_schema|atabase" mysql: [Warning] Using a password on the command line inter 阅读全文
posted @ 2021-03-17 09:31 努力吧阿团 阅读(86) 评论(0) 推荐(0) 编辑
摘要: ####故障模拟恢复案例1 1、创建测试数据库 create database test; use test; create table t1 (id int); insert into t1 values(1),(2),(3); commit; 2、模拟在周二 23:00进行全备份 $ mysql 阅读全文
posted @ 2021-03-17 09:30 努力吧阿团 阅读(61) 评论(0) 推荐(0) 编辑
摘要: ####简介 mysqldump备份也叫逻辑备份,是将数据转换成sql语句保存成文件进行备份。 适用于小于30G的数据备份。 大于30G的备份建议使用XBK物理备份。 ####常用备份参数 1、不带参数备份单个数据库中的所有表 #备份xyz数据库中的所有表 $ mysqldump -uroot -p 阅读全文
posted @ 2021-03-17 09:28 努力吧阿团 阅读(240) 评论(0) 推荐(0) 编辑