How to do a mysqldump with a use database in the dump
The flag is --databases

mysqldump -u user -p --add-drop-tables --databases database &gt; *file*


So if you have more than one schema names you need to set which databases with the --databases flag. Then it inserts which one is necessary to be used.