[MySQL复制异常]Cannot execute statement: impossible to write to binary log since statement is in row for
2015-12-03 15:17
603 查看
转自:http://blog.csdn.net/ldl22847/article/details/50110019
MySQL复制错误]Last_Errno: 1666 Last_Error: Error executing row event: 'Cannot execute statement: imposs
收到email报警, Last_Error: Error executing row event: 'Cannot execute statement: impossible to write to binary log since statement is in row format and BINLOG_FORMAT = STATEMENT.'
mysql> show slave status;
看到貌似是statement模式不足以应付应用,换成mixed试试看吧:
mysql> STOP SLAVE;
Query OK, 0 rows affected (0.02 sec)
mysql> SET GLOBAL binlog_format=MIXED;
Query OK, 0 rows affected (0.00 sec)
mysql> START SLAVE;
Query OK, 0 rows affected (0.00 sec)
但是这样只会一次性
为了永久生效,需要修改my.ini
# Remove leading
# to turn on a very important data integrity option: logging
# changes to the binary log between backups.
log_bin = E:/mysql56/log_bin/log_bin.log
#relay_log = E:/mysql56/log_bin/relay_log.log
#read_only = 1
# binary logging format - mixed recommended
binlog_format=mixed
my.ini 的地址一般存放在
C:\ProgramData\MySQL 一般是隐藏的。
MySQL复制错误]Last_Errno: 1666 Last_Error: Error executing row event: 'Cannot execute statement: imposs
收到email报警, Last_Error: Error executing row event: 'Cannot execute statement: impossible to write to binary log since statement is in row format and BINLOG_FORMAT = STATEMENT.'
mysql> show slave status;
看到貌似是statement模式不足以应付应用,换成mixed试试看吧:
mysql> STOP SLAVE;
Query OK, 0 rows affected (0.02 sec)
mysql> SET GLOBAL binlog_format=MIXED;
Query OK, 0 rows affected (0.00 sec)
mysql> START SLAVE;
Query OK, 0 rows affected (0.00 sec)
但是这样只会一次性
为了永久生效,需要修改my.ini
# Remove leading
# to turn on a very important data integrity option: logging
# changes to the binary log between backups.
log_bin = E:/mysql56/log_bin/log_bin.log
#relay_log = E:/mysql56/log_bin/relay_log.log
#read_only = 1
# binary logging format - mixed recommended
binlog_format=mixed
my.ini 的地址一般存放在
C:\ProgramData\MySQL 一般是隐藏的。
相关文章推荐
- Servlet连接MySQL
- c#连接mysql
- mysql的安装问题总结
- windows 安装绿色版MYSQL
- logstash推送mysql慢查询日志
- mysql 常用函数
- mysql 中 LIMIT的简单用法
- Mysql 数据库死锁过程分析(select for update)
- 查看mysql远程访问是否开启?
- 关于vs2013的mysql配置问题说明
- [资料]mysql实现地理位置搜索
- 测试mysql数据库驱动及安装教程
- mysql添加外键
- Mysql选择合适的数据类型
- Mysql选择合适的存储引擎
- Mysql存储过程
- mysql分表和表分区详解
- MySql 各类引擎
- MYSQL 性能优化
- MySQL 5.6分区表 入门例子讲解