Last active
February 6, 2024 23:52
-
-
Save stormwild/5746860 to your computer and use it in GitHub Desktop.
How to disable MySQL Safe Mode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UPDATE table_name SET bDeleted=0 WHERE name='xyz'; | |
“You are using safe update mode and you tried to update a table without a WHERE clause that uses a KEY column.” | |
SET SQL_SAFE_UPDATES=0; | |
UPDATE table_name SET bDeleted=0 WHERE name='xyz'; | |
SET SQL_SAFE_UPDATES=1; | |
#http://www.xpertdeveloper.com/2011/10/mysql-safe-update/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It works Thank You