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。。

This is because MySql running in safe-updates mode, which can lead to non-primary key condition unable to perform update or delete command.
 
1, show variables like 'SQL_SAFE_UPDATES'; see switching state.
 
2, Run SET SQL_SAFE_UPDATES = 0; modify the database schema

Guess you like

Origin www.cnblogs.com/hellohero55/p/12111363.html