mysql delete数据时报Error Code 1175

我们在学校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, toggle the option in Preferences -> SQL Editor and reconnect.    0.000 sec

第一次遇到这个错误是正常的,这是因为mysql的安全机制造成的,以下是解决方案:

一 :选择mysql上面的Edit菜单

二:选择Edit菜单中的Preferences选项,选中SQL Editor,出现以下界面:

三:去掉safe Updates前面的选择框

四:重新连接database,然后执行sql就可以删除了

注意事项:

一般还是使用SET SQL_SAFE_UPDATES = 0;每次我们想删除数据或者更新数据时使用一下。

更改了设置后,以后删除更新数据时就不会有 什么提示了,一不小心我们删除了就不好了。

时间: 2024-10-12 18:45:46

mysql delete数据时报Error Code 1175的相关文章

Error Code: 1175. You are using safe update mode and you tried to update a table

错误描述 11:14:39 delete from t_analy_yhd 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 se

mysql错误:Error Code: 1175. You are using safe update mode and you tried to update a table……

今天遇到一个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, toggle the option in Preferences -> SQL Queries and reconnect. 网上查了一下,原来是SET SQL_SAFE_UPDATES

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

今天用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 disabl

MySQL Workbench update语句错误Error Code: 1175.

rom:http://www.tuicool.com/articles/NJ3QRz MySQL update error: 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 Queri

Error Code: 1175 You are using safe update mode and you tried to update a table without a WHERE that

转载自: http://blog.csdn.net/amohan/article/details/9980315 快速高效用:SET SQL_SAFE_UPDATES = 0:下面的就不要看了! 今日用MySQL Workbench进行数据库的管理更新时,执行一个更新的语句碰到以下错误提示: Error Code: 1175 You are using safe update mode and you tried to update a table without a WHERE that us

Error Code: 1175. You are using safe update

在使用mysql执行update的时候,如果不是用主键当where语句,会报如下错误,使用主键用于where语句中正常. 异常内容: 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 Q

Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE

1 错误描写叙述 19:15:34 call sp_store_insert(90) 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.0

Error Code: 1175. You are using safe update mode and you tried to ......

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, toggle the option in Preferences 意思是:在安全更新模式下尝试使用未带关键字的“WHERE”语句,在Preference中切换该选项. SET SQL_SA

Mysql导入Sql文件时报Error Code: 2013 - Lost connection to MySQL server during query

MySql 有时我们导入sql文件,文件过大,导致Error Code: 2013 - Lost connection to MySQL server during query这种错误 执行以下: [sql] view plain copy print? SHOW GLOBAL VARIABLES LIKE '%timeout'; SET GLOBAL net_write_timeout=28800; SET GLOBAL net_read_timeout=100; SET GLOBAL con