title: Importing SQL file: PostgreSQL
body: <p>I'm a web development student and struggling to solve this problem on my own, any help would be appreciated!</p>
  <p>Note that I'm working in an Amazon Cloud9 instance. My problem is that when I try to import an SQL file into a PostgreSQL database using the following command:</p>
  <pre><code>$ psql -d my_database &lt; file_to_import.sql
  </code></pre>
  <p>I get the following error:</p>
  <pre><code>https:/raw.githubusercontent.com/...[removed for privacy]: No such file or directory
  </code></pre>
  <p>I know the file exists, because I'm able to navigate to it. I've tried copying the contents of the file into a new file on my desktop and then inserting the path to that file in the place of &quot;file_to_import.sql&quot; but that's not working either. I get the same error.</p>
  <p>I've also tried importing via this template:</p>
  <pre><code>my_database=# \i ~/some/files/file_to_import.sql
  </code></pre>
  <p>But I get the same error. What's gone wrong here?</p>
  <p>Thanks in advance!</p>