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