1

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?

0

1 Answer 1

2

You could do this:

mysql -uroot -ppass --force < db_import.sql 
Sign up to request clarification or add additional context in comments.

1 Comment

This didn't work for me. I still got an error message displayed. Could there be something else I am doing run. By the way I am running mysql 5.0.51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.