时间:2021-07-01 10:21:17 帮助过:4人阅读
[root@BlackGhost mysql]# /usr/local/mysql/bin/mysqlbinlog --start-date="2010-09-29 18:00:00" --stop-date="2010-09-29 23:00:00" /var/lib/mysql/mysql-bin.000002 |mysql -u root -p #根据时间查找后,还原 [root@BlackGhost mysql]# /usr/local/mysql/bin/mysqlbinlog -d test /var/lib/mysql/mysql-bin.000002 #根据数据库名查找 [root@BlackGhost mysql]# /usr/local/mysql/bin/mysqlbinlog -h 192.1681.102 /var/lib/mysql/mysql-bin.000002 #根据数据库所在IP来查找 [root@BlackGhost mysql]# /usr/local/mysql/bin/mysqlbinlog -p 13306 /var/lib/mysql/mysql-bin.000002 #根据数据库端口来查找 [root@BlackGhost mysql]# /usr/local/mysql/bin/mysqlbinlog --server-id=1 /var/lib/mysql/mysql-bin.000002 #根据数据库的ID来查找
mysqlbinlog
标签: