mysql错误--binlog支持问题
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)