当前位置:Gxlcms > 数据库问题 > mysqlbinlog 可视化查看sql语句

mysqlbinlog 可视化查看sql语句

时间:2021-07-01 10:21:17 帮助过:112人阅读

直接mysqlbinlog导出来的文件,执行sql部分的sql语句显示为base64编码格式,无法正常阅读。


所以生成sql记录的时候,不能用常规的办法去生成,需要加上相应的参数才能显示出sql语句

--base64-output=decode-rows -v


例如

mysqlbinlog --base64-output=decode-rows -v --start-date=‘2017-05-16 12:00:00‘ --stop-date=‘2017-05-31 16:20:00‘ /root/mysql-bin  |gzip >mysql.sql.gz

本文出自 “Stephen” 博客,请务必保留此出处http://stephenzhao.blog.51cto.com/2515860/1931028

mysqlbinlog 可视化查看sql语句

标签:sql语句   mysqlbinlog   可视化查看   

人气教程排行