1.查询日志是否开启
show variables like"log_";
2.查询是用的哪个日志文件
show master status;
3.定位是在什么时间误删的
/usr/local/mysql/bin/mysqlbinlog /usr/local/mysql/var/mysql-bin.000075
show binlog events in 'mysql-bin.000075';
也就是说,610是drop了数据表,那么恢复至能到505即可
4.恢复
/usr/local/mysql/bin/mysqlbinlog --stop-position="505" /usr/local/mysql/var/mysql-bin.000075 | mysql -uroot -proot (具体参考mysqlbinlog 用法)
5.查看恢复情况
6.其他