/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; DELIMITER /*!*/; # at 4 #230608 11:23:18 server id 1 end_log_pos 123 CRC32 0x1f65b0e8 Start: binlog v 4, server v 5.7.42-log created 230608 11:23:18 # Warning: this binlog is either in use or was not closed properly. BINLOG ' pkmBZA8BAAAAdwAAAHsAAAABAAQANS43LjQyLWxvZwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAEzgNAAgAEgAEBAQEEgAAXwAEGggAAAAICAgCAAAACgoKKioAEjQA AeiwZR8= '/*!*/; # at 123 #230608 11:23:18 server id 1 end_log_pos 154 CRC32 0x21b87791 Previous-GTIDs # [empty] SET @@SESSION.GTID_NEXT= 'AUTOMATIC' /* added by mysqlbinlog */ /*!*/; DELIMITER ; # End of log file /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; [root@test ~]# mysqlbinlog /var/lib/mysql/mysql-bin.000002 |grep -i IN #230608 11:23:18 server id 1 end_log_pos 123 CRC32 0x1f65b0e8 Start: binlog v 4, server v 5.7.42-log created 230608 11:23:18 # Warning: this binlog is either in use or was not closed properly. BINLOG ' SET @@SESSION.GTID_NEXT= 'AUTOMATIC' /* added by mysqlbinlog */ /*!*/;
时间: 2024-04-07 22:31:05 浏览: 97
tty.rar_Master/Slave_linux tty
这段 binlog 的内容中并没有包含任何的 INSERT 操作语句,因此你无法通过解析这段 binlog 来查看你刚刚插入的数据。这段 binlog 的内容主要是一些 MySQL 的配置信息,以及 binlog 的创建信息。
如果你想要查看你刚刚插入的数据,可以尝试使用其他的工具来查看 MySQL 的 binlog。另外,你也可以检查一下你的 MySQL 配置,确保 binlog 的模式是 ROW 模式,并且 MySQL 客户端没有使用一些不记录 binlog 的选项。
阅读全文