title: mysql script no database selected
body: <p>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:</p>
  
  <pre><code>mysql -u &lt;user&gt; -p&lt;password&gt; &lt; script1.sql
  mysql -u &lt;user&gt; -p&lt;password&gt; &lt; script2.sql
  </code></pre>
  
  <p>the last line of script1 is <code>USE mydatabase;</code> but when I run script2 it says there is no database selected. Is there a way to specify what database to use for script2?</p>