How to skip row when importing bad MySQL dump

后端 未结 6 1992
青春惊慌失措
青春惊慌失措 2020-12-15 15:58

Given bad mysqldump that causes error on import:

namtar backups # mysql -p < 2010-12-01.sql
Enter password: 
ERROR 1062 (23000) at line 8020:         


        
6条回答
  •  感情败类
    2020-12-15 16:56

    If you can make the dump again you could add --insert-ignore to the command-line when dumping.

    Or you can try using the mysqlimport command with --force,which will continue even if it encounters MySQL Errors.

提交回复
热议问题