mysql you are using safe update mode code example Example: sql disable safe mode SET SQL_SAFE_UPDATES = 0;