title: How to restore MySQL backup .sql on server
body: <p>I'm using putty to connect to my MySQL server.</p>
  
  <p>I've a backup .sql file from which I want to create the tables on the server.</p>
  
  <p>According to the link here <a href="https://stackoverflow.com/questions/2892822/restore-backup-mysql">restore backup mysql</a>, I'm trying to perform this command</p>
  
  <p><code>mysql -u username -p -h hostname databasename &lt; dumpfile.sql</code></p>
  
  <p>Now my question is,</p>
  
  <ol>
  <li>What is the 'hostname' here? Is it 'Localhost'?</li>
  <li>How do I find the correct path to my <code>dumpfile.sql</code> file on the server which I have uploaded. Say for instance I've uploaded inside <code>www/apache/appname/</code>?</li>
  </ol>