title: Upload sql document using terminal
body: <p>I connected to server using ssh, and I need to upload MySQL database.</p>
  
  <p>I have tried:</p>
  
  
  
  <pre class="lang-none prettyprint-override"><code>$ mysql -u root -p database_name &lt; /Users/stevik/Desktop/database.sql
  -bash: /Users/stevik/Desktop/database.sql: Directory or file does not exist
  </code></pre>
  
  <p>And I have also tried:</p>
  
  <pre class="lang-none prettyprint-override"><code>mysql&gt; source /Users/stevik/Desktop/database.sql
  ERROR:
  Failed to open file 'database.sql', error: 2
  </code></pre>
  
  <p>Is it trying to get the file on the server or on my computer?</p>