根据binlog恢复数据库数据步骤
1.mysqlbinlog mysql-bin.000040 > 1.sql
2.获取到单表操作more 1.sql |grep --ignore-case -E 'insert|update|delete' -A2 -B2|grep {you_table_name} > 1.txt
根据binlog找出对应库操作语句,但是没法区分哪个库的,
转载于:https://my.oschina.net/doz/blog/744390
根据binlog恢复数据库数据步骤
1.mysqlbinlog mysql-bin.000040 > 1.sql
2.获取到单表操作more 1.sql |grep --ignore-case -E 'insert|update|delete' -A2 -B2|grep {you_table_name} > 1.txt
根据binlog找出对应库操作语句,但是没法区分哪个库的,
转载于:https://my.oschina.net/doz/blog/744390