mysql> INSERT INTO t VALUES('1', 'first', '24');
ERROR 1598 (HY000): Binary logging not possible. Message: Statement cannot be logged to the binary log in row-based nor statement-based format

MySQL默认开启了bin-log,但大多数情况下,不做复制没必要使用bin-log,通过修改 my.cnf来关闭这个功能。

编辑“/etc/my.cnf”文件,找到以下两段:

log-bin=mysql-bin
binlog_format=mixed

修改为:

#log-bin=mysql-bin
#binlog_format=mixed

然后重启Mysql

mysql> INSERT INTO t VALUES('1', 'first', '24');
Query OK, 1 row affected (0.00 sec)

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-04-26
  • 2021-12-06
  • 2022-12-23
  • 2021-04-01
  • 2021-11-27
  • 2022-02-19
猜你喜欢
  • 2022-01-02
  • 2022-01-06
  • 2022-12-23
  • 2022-02-20
  • 2022-12-23
  • 2022-12-23
  • 2021-07-15
相关资源
相似解决方案