You may have used something like this:
mysqldump -u -p <other options> --database your_database > file.sql
I found that when using --databaseit, a script is created using the string 'use your_database'. Thus, do not use this option, and the line is gone:
mysql -u -p <other options> your_database > file.sql
source
share