title: Import a mysql database using mysql command line
body: <p>I was wondering if it's possible to import a mysql database
  using the mysql command line.</p>
  
  <p>Most solutions give mysql -u root -p nameofdatabase &lt; mysqlfile.sql</p>
  
  <p>I was wondering if it's possible to do this inside the 
  mysql commmand line, <em>instead of passing arguments to the executable.</em> </p>
  
  <p>If I just do </p>
  
  <pre><code> mysql&gt; mydatabase &lt; mysqlfile.sql;
  </code></pre>
  
  <p>That just doesn't work. Thank you.</p>