Given bad mysqldump that causes error on import:
mysqldump
namtar backups # mysql -p < 2010-12-01.sql Enter password: ERROR 1062 (23000) at line 8020:
If you can make the dump again you could add --insert-ignore to the command-line when dumping.
--insert-ignore
Or you can try using the mysqlimport command with --force,which will continue even if it encounters MySQL Errors.
--force