The default location of postgres in linux is :
/opt/PostgreSQL/8.4/
You can go to this location by typing the below command
> cd /opt/PostgreSQL/8.4/
change to bin directory
> cd bin/
Now for logging into the postgres run following command :
> /opt/PostgreSQL/8.4/bin/psql -U postgres
where 'postgres' is the username that was asked to you while installing the postgres.After this command it will ask you for password. Then enter the password and you are logged in.
/opt/PostgreSQL/8.4/
You can go to this location by typing the below command
> cd /opt/PostgreSQL/8.4/
change to bin directory
> cd bin/
Now for logging into the postgres run following command :
> /opt/PostgreSQL/8.4/bin/psql -U postgres
where 'postgres' is the username that was asked to you while installing the postgres.After this command it will ask you for password. Then enter the password and you are logged in.
Comments
Post a Comment
.