2014-02-16 MySQLでテーブルTRUNCATE(DROP)でエラー時の対処 MySQL MySQLでテーブルのデータを全て削除しようと思って TRUNCATE(DROP)した所エラーが発生 Error Code: 1175 You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column 対策として事前に下記SQL実行すればOKでした。 ※安全のための機能?らしいです SET SQL_SAFE_UPDATES = 0; 参考 http://programmer-jobs.blogspot.jp/2012/10/mysqlerror-code-1175-you-are-using-safe.html http://d.hatena.ne.jp/kitokitoki/20110804/p1