1. 程式人生 > >mysql 1175錯誤解決辦法

mysql 1175錯誤解決辦法

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;

Error Code: 1101. BLOB, TEXT, GEOMETRY or JSON column '*' can't have a default value0.000 sec

解決辦法

mysql> set session sql_mode='STRICT_TRANS_TABLES'