title: Not able to load raster to postgis
body: <p>I want to load a raster file in postgis
  In command prompt I'm running </p>
  
  <pre><code>C:\Program Files\PostgreSQL\9.4\bin&gt;raster2pgsql -I -C -s 4326 D:\Aparna\Data\PNV\pnv_new.tiff public.testraster|psql -d geodjango
  </code></pre>
  
  <p>I get the following error</p>
  
  <pre><code>ERROR: Unable to read raster file: D:\Aparna\Data\PNV\pnv_new.tiff
  psql: could not connect to server: Connection refused (0x0000274D/10061)
          Is the server running on host "localhost" (::1) and accepting
          TCP/IP connections on port 5432?
  received invalid response to SSL negotiation: -
  </code></pre>
  
  <p>My port is 5433. After going through few posts I changed the line in pg_hba.conf
  from </p>
  
  <pre><code># IPv4 local connections:
  host    all             all             127.0.0.1/32          md5
  </code></pre>
  
  <p>to </p>
  
  <pre><code># IPv4 local connections:
  host    all             all             0.0.0.0/0            trust
  </code></pre>
  
  <p>but its not working. How can I solve this?</p>