要解析MySQLbinlog內(nèi)容,可以使用mysqlbinlog命令。以下是一些常用的選項和示例:
mysqlbinlog [options] [log_file]
其中,[options]為可選參數(shù),[log_file]為要查看的binlog文件。
mysqlbinlog --start-position=start_pos --stop-position=stop_pos log_file
mysqlbinlog --start-datetime=start_time --stop-datetime=stop_time log_file
mysqlbinlog --base64-output=decode-rows log_file
mysqlbinlog --verbose log_file
通過以上方法,可以解析MySQLbinlog文件中的內(nèi)容,并查看其中的SQL語句和操作記錄。
億速云公眾號
手機(jī)網(wǎng)站二維碼
Copyright ? Yisu Cloud Ltd. All Rights Reserved. 2018 版權(quán)所有
廣州億速云計算有限公司粵ICP備17096448號-1 粵公網(wǎng)安備 44010402001142號增值電信業(yè)務(wù)經(jīng)營許可證編號:B1-20181529