Pattle
Pattle

Reputation: 6014

Hide errors during mysql import

I was wonder if anyone knows how I can hide errors while running a mysql import from the Windows command line. I am doing,

mysql -u root -p < db_import.sql

However if I get an error like "ERROR 1060 at line 1: Duplicate column name field2" is there a way that I can stop these from showing?

Upvotes: 1

Views: 180

Answers (1)

Crsr
Crsr

Reputation: 624

You could do this:

mysql -uroot -ppass --force < db_import.sql 

Upvotes: 2

Related Questions