title: How to import a .sql file
body: <p>I'm running MySQL on Ubuntu 10.4 LTS and unfortunately I've been experiencing serious problems when it comes to importing a sql file.</p>
  
  <p>What I actually do:</p>
  
  <p>1) I move to the directory containing the sql file which is called: bk.sql</p>
  
  <p>2) Then I type :</p>
  
  <p><code>mysql -u root -p</code> (and then I enter the root password and everything goes smoothly)</p>
  
  <p>3) I use this command to do the import operation (assuming that password =123m Database name = Mydb sql file = bk.sql)</p>
  
  <pre><code>mysql -u root -p 123m Mydb &lt; bk.sql;
  </code></pre>
  
  <p>What I get is : </p>
  
  <pre><code>ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that 
  
  corresponds to your MySQL server version for the right syntax to use near 'mysql -u root 
  
  -p 123m Mydb &lt; bk.sql' at line 1
  </code></pre>
  
  <p>Is the import procedure correct?</p>