dbTalk Databases Forums  

default postgres user password on CentOS?

comp.databases.postgresql comp.databases.postgresql


Discuss default postgres user password on CentOS? in the comp.databases.postgresql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Greg Russell
 
Posts: n/a

Default default postgres user password on CentOS? - 11-06-2009 , 11:37 AM






Hello, I'm new to postgresql and have installed it on CentOS 5.3 via yum. I
am attempting to install an application that uses postgresql as its
database, and am running application-supplied scripts to create the ah3 user
and database structure, e.g:

su -c "createuser -h localhost --createdb --no-createrole --no-superuser
ah3" postgres

su -c "createdb -h localhost --owner ah3 ah3" postgres

su -c "psql -h localhost --user ah3 ah3 < /opt/ah3/database/ah3.psql"
postgres

I don't know what is the default password is for the user "postgres"
however. How do I fix this problem, please?

Reply With Quote
  #2  
Old   
Thomas Kellerer
 
Posts: n/a

Default Re: default postgres user password on CentOS? - 11-06-2009 , 02:38 PM






Greg Russell wrote on 06.11.2009 18:37:
Quote:
Hello, I'm new to postgresql and have installed it on CentOS 5.3 via yum. I
am attempting to install an application that uses postgresql as its
database, and am running application-supplied scripts to create the ah3 user
and database structure, e.g:

su -c "createuser -h localhost --createdb --no-createrole --no-superuser
ah3" postgres

su -c "createdb -h localhost --owner ah3 ah3" postgres

su -c "psql -h localhost --user ah3 ah3 < /opt/ah3/database/ah3.psql"
postgres

I don't know what is the default password is for the user "postgres"
however. How do I fix this problem, please?
I don't know about CentOS but normally the password for the postgres DB user is supplied during installation.

However, you can easily reset the password:

http://archives.postgresql.org/pgsql...6/msg00197.php
http://www.depesz.com/index.php/2008...esql-password/

Thomas

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.