mysqlAB复制报[Warning] Statement may not be safe to log in statement format
2013-05-08 17:11
537 查看
做好mysql AB复制后,master总报:
[Warning] Statement may not be safe to log in statement format.……
每更新一条数据就出现一次,导致日志太多,而且淹没了重要的日志。意思应该是statement 格式不安全。
statement format 应该是 binlog的一种格式,进入mysql查看一下
show global variables like 'binlog_format';
果然当前的格式为statement
需要把格式改为 mixed格式
修改master的 my.cfg
在[mysqld]下面加入下面这行
binlog_format=mixed
然后重启mysql服务,发现错误日志里的 警告 都停止了。这回清静多了~~
本文出自 “别有天地” 博客,请务必保留此出处http://liuqs.blog.51cto.com/4933198/1195711
[Warning] Statement may not be safe to log in statement format.……
每更新一条数据就出现一次,导致日志太多,而且淹没了重要的日志。意思应该是statement 格式不安全。
statement format 应该是 binlog的一种格式,进入mysql查看一下
show global variables like 'binlog_format';
果然当前的格式为statement
需要把格式改为 mixed格式
修改master的 my.cfg
在[mysqld]下面加入下面这行
binlog_format=mixed
然后重启mysql服务,发现错误日志里的 警告 都停止了。这回清静多了~~
本文出自 “别有天地” 博客,请务必保留此出处http://liuqs.blog.51cto.com/4933198/1195711
相关文章推荐
- [MySQL复制异常]'Cannot execute statement: impossible to write to binary log since statement is in row format and BINLOG_FORMAT = STATEMENT.'
- 【转】[MySQL复制异常]Cannot execute statement: impossible to write to binary log since statement is in row for
- Android Warning not all local changes may be shown due to an error
- Warning not all local changes may be shown due to an error(IDEA Bug) IDEA不能检查到代码变化
- [MySQL复制异常]Cannot execute statement: impossible to write to binary log since statement is in row for
- 停机文件[Warning] Unsafe statement written to the binary log using statement format since 错误
- impossible to write to binary log since statement is in row format and BINLOG_FORMAT = STATEMENT
- JAVA调用mysql数据操作时出现错误:impossible to write to binary log since statement is in row format and BINLOG_FORMAT = STATEMENT.'
- [MySQL复制异常]Cannot execute statement: impossible to write to binary log since statement is in row for
- The project was not built due to "Could not delete ...".Fix the problem, then try refreshing this project and building it since it may be inconsistent.
- Warning: number_format() expects parameter 1 to be double, string given in
- [Warning] Unsafe statement written to the binary log using statement format since 错误
- 禁止requests请求https的提示InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more
- 关于Android studio安装出现“ 'tools.jar' seems to be not in Android Studio classpath..."的问题
- Warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone sett
- iOS - 报错 Warning: Attempt to present <xx: xx> on <xx: xx> whose view is not in the window hierarchy!
- The specified named connection is either not found in the configuration, not intended to be used
- Namespace declaration statement has to be the very first statement in the script
- This function has none of Deterministic,no sql,or reads sql data in its declaration and binary logging is enabled(you *might* want to use the less safe log_bin_trust_function_creators variable
- PHP Warning: date(): It is not safe to rely on the system’s timezone settings