Continue SQL query even on errors in MySQL workbench

前端 未结 3 707
别那么骄傲
别那么骄傲 2020-12-03 04:04

I\'m using MySQL workbench to import a Joomla sample_data.sql file into my local database. I want it to continue importing, even if an error occurs, by skipping the line th

3条回答
  •  独厮守ぢ
    2020-12-03 04:36

    try

    mysql --force < sample_data.sql 
    

    Mysql help section says

     -f, --force         Continue even if we get an sql error.
    

提交回复
热议问题