title: How do I open an sql database that I downloaded using the terminal?
body: <p><a href="https://stackoverflow.com/questions/4546778/how-can-i-import-a-database-with-mysql-from-terminal">How can I import a database with MySQL from terminal?</a>
  the syntax from this thread</p>
  
  <pre><code>mysql -u username -ppassword databasename &lt; filename.sql
  </code></pre>
  
  <p>my input for the file (lahman591) i placed on my root for simplicity sake</p>
  
  <pre><code>mysql&gt; mysql -u root -p lahman591 &lt;c:\lahman591.sql
  </code></pre>
  
  <p>i get an Error:</p>
  
  <pre><code>ERROR 1064 (42000) You have an error in your sql syntax.
  </code></pre>