Syntax error uploading a .sql file in the Command Line
<p>In the Command Line I created a database with:</p>

<pre><code>create database mysql;
</code></pre>

<p>but when i try to upload a database file with the command:</p>

<pre><code>mysql -u root -p  database &lt; dbdump.sql;
</code></pre>

<p>i receive a syntax error and i don't understand where i'm wrong</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  database &lt; dbdump.sql' at line 1
</code></pre>