Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE tha
【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.
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.
這是因?yàn)镸ySql運(yùn)行在safe-updates模式下,該模式會導(dǎo)致非主鍵條件下無法執(zhí)行update或者delete命令。
1、show variables like ‘SQL_SAFE_UPDATES’;查看開關(guān)狀態(tài)。
2、執(zhí)行命令SET SQL_SAFE_UPDATES = 0;修改下數(shù)據(jù)庫模式
參考資料:http://jingyan.baidu.com/article/e5c39bf58ed69239d76033a4.html
總結(jié)
以上是生活随笔為你收集整理的Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE tha的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 关于计算机知识的手抄报图片大全,关于科技
- 下一篇: 音乐怪兽来袭 诺基亚X7港行即将开卖