Question : Ignore errors when importing sql file in mysql

I am importing a sql file into phpmyadmin and lines are something like
INSERT INTO () VALUES (....
INSERT INTO () VALUES (....
INSERT INTO () VALUES (....
It sometimes happen that some data is not encoded right and the import process stops.
What do I have to put in in that sql file in order to ignore error and skip to next line

Answer : Ignore errors when importing sql file in mysql

phpmyadmin, will stop on errors when you are importing a file, there are no options to set it to continue processing expect for "Ignore Duplicates".

You can write your own php script to loop read the CSV file and insert the records into the database.
That way you can continue to process the records even if there are errors.
Random Solutions  
 
programming4us programming4us