migrationとか、おしゃれな仕組みがないレガシープロジェクトの場合SQLファイルを作ってDBの変更履歴を共有したりするわけで git blameを使って直前にコミットされた差分だけ実行したりしてましたが1発でいけることを今更知りました -f, –force Continue even if we get an SQL error. ~~~ mysql -uroot -proot -f dbname < ddl.sql ~~~ mysqlの-fコマンドはエラーを無視して実行してくれます ~~~ ERROR 1060 (42S21) at line 42: Duplicate column name 'sub_title7' ERROR 1060 (42S21) at line 43: Duplicate column name 'sub_comment7' ERROR 1060 (42