If you want to connect to your postgre database without entering password every time, you can achieve that by creating PGPASS file in your home directory.
e.g. Create a file called .pgpass in your home directory. Add and entry in this format.
Here is a documentation from postgresql site.
http://www.postgresql.org/docs/9.1/static/libpq-pgpass.html
e.g. Create a file called .pgpass in your home directory. Add and entry in this format.
hostname:port:database:username:password
priyank@localhost:~$ vi .pgpass 192.168.1.101:5432:restaurant:priyank:passwordispassword
Here is a documentation from postgresql site.
http://www.postgresql.org/docs/9.1/static/libpq-pgpass.html
No comments:
Post a Comment