首页 > 数据库技术 > 详细

Mysql Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column To disable safe mode

时间:2015-04-28 17:48:50      阅读:1229      评论:0      收藏:0      [点我收藏+]

今天用mysql workbench在更新数据的时候,出现了下面错误:
15:52:39    update wp_posts set post_content = replace(post_content, ‘/water‘, ‘‘)    Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column To disable safe mode, toggle the option in Preferences -> SQL Editor and reconnect.    0.000 sec
解决办法:在更新之前加上下面这句即可。
SET SQL_SAFE_UPDATES = 0;

或者按照提示在打开菜单的Edit->Preferences,

技术分享

技术分享

在重启mysql就行。

Mysql Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column To disable safe mode

原文:http://www.cnblogs.com/jecyhw/p/4463301.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!