当前位置:Gxlcms > 数据库问题 > linux中MySQL的bin-log日志格式更改

linux中MySQL的bin-log日志格式更改

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

查看与配置binlog格式
1.查看binlog_format

进入mysql

show variables like ‘binlog_format‘

技术分享

修改binlog日志格式

修改配置文件

vim /etc/my.conf

把binlog_format=ROW改成binlog_format=MIXED

之后的bin-log日志文件就会显示执行的sql语句

 

linux中MySQL的bin-log日志格式更改

标签:更改   配置文件   分享   code   ges   log   日志文件   inux   mysq   

人气教程排行