I'm trying to run some mysql scripts from the command line. One is autogenerated and it does not select the database before hand. Right now I have two scripts:
mysql -u <user> -p<password> < script1.sql
mysql -u <user> -p<password> < script2.sql
the last line of script1 is USE mydatabase; but when I run script2 it says there is no database selected. Is there a way to specify what database to use for script2?