title: How to access database running for local profile in a shared environment?
body: <p>I'm not the root of a linux shared server. 
  I have installed postgres for my local profile (<a href="http://blog.endpoint.com/2013/06/installing-postgresql-without-root.html" rel="nofollow noreferrer">http://blog.endpoint.com/2013/06/installing-postgresql-without-root.html</a>)</p>
  
  <p>I'm running a python code on the same server to access that database.</p>
  
  <p>What should I give my URL as in my python code:
  dbURL =postgres://postgres:root@localhost:5432/myDb</p>
  
  <p>OR should I add 
  export PATH=$HOME/postgres/bin/:$PATH in my .bashrc file</p>
  
  <p>I checked from terminal, myDb is on localhost:5432 postgres server.
  Everything is working fine when I interact with my database from terminal.</p>
  
  <p>Sorry, I'm not able to get why my code is not able to connect to this db. 
  PS: Everything is fine from code side as well (was running perfectly on local machine)</p>