mysql 解除安全模式
生活随笔
收集整理的這篇文章主要介紹了
mysql 解除安全模式
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
問題:rror 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 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.
這是因為MySql運行在safe-updates模式下,該模式會導致非主鍵條件下無法執行update或者delete命令。 1、show variables like 'SQL_SAFE_UPDATES';查看開關狀態。 2、執行命令SET SQL_SAFE_UPDATES = 0;修改下數據庫模式 參考資料:http://jingyan.baidu.com/article/e5c39bf58ed69239d76033a4.html
轉載于:https://www.cnblogs.com/lshan/p/9186606.html
總結
以上是生活随笔為你收集整理的mysql 解除安全模式的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: CSS权重的等级划分
- 下一篇: Python-使用PyQT生成图形界面