mysql5.7.31 开启binlog

Centos7 mysql5.7.31 开启binlog

1、vim /etc/my.cnf Mysql主配置文件中添加如下内容

#开启binlog
log-bin=mysql-bin
expire_logs_days=7
server-id=1
binlog_format=MIXED

2、重新启动msyql

systemctl restart mysql

 

posted @ 2022-02-17 18:44  向往明天-tsingyun  阅读(162)  评论(0编辑  收藏  举报