免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2582 | 回复: 5
打印 上一主题 下一主题

Statement is not safe to log in statement format [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-04-02 14:23 |只看该作者 |倒序浏览
最近把mysql从5.0.45升级到了5.1.32,后来查看log是,发现会有以下的warning,上网搜了一下,感觉会跟log-bin有关,请问有没哪位遇到过这个问题?
090402 12:02:33 [Warning] Statement is not safe to log in statement format. Statement: update tb_charge set inNum = '37' limit 1
090402 12:56:38 [Warning] Statement is not safe to log in statement format. Statement: update tb_charge set inNum = '38' limit 1
090402 13:38:01 [Warning] Statement is not safe to log in statement format. Statement: update tb_charge set inNum = '39' limit 1

论坛徽章:
0
2 [报告]
发表于 2009-04-02 15:20 |只看该作者
刚才我新建了一个db_test(num int) database,然后insert一个数据进去后,再update limit,同样出现warning,去掉limit就没事了...好奇怪...在5.0下又没这个警告

论坛徽章:
0
3 [报告]
发表于 2009-04-02 18:30 |只看该作者
[29 Nov 2008 10:00] Shane Bester
Description:
When insert delayed statements are executed with statement based binlogging enabled, you
don't get the full query - only the table name.

[Warning] Statement is not safe to log in statement format. Statement: b1

Why is entire query not printed?

How to repeat:
drop table if exists b1;
create table b1(a varchar(255))engine=myisam;
insert delayed into b1 set a='test';
[16 Feb 11:46] Davi Arnaut
Fixed by patch for Bug#42634
[18 Feb 21:13] Paul DuBois
Noted in 5.1.32, 6.0.10 changelogs.

The server cannot execute INSERT DELAYED statements when
statement-based binary logging is enabled, but the error message
displayed only the table name, not the entire statement.

论坛徽章:
0
4 [报告]
发表于 2009-04-02 22:28 |只看该作者
db是别人设计的...规定了要用innodb...

论坛徽章:
0
5 [报告]
发表于 2009-04-03 09:16 |只看该作者
另外就是,单单update limit,这个不算是delay statement吧?

论坛徽章:
0
6 [报告]
发表于 2009-06-03 13:09 |只看该作者
这个问题原因是什么,有解决吗?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP