Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PostgreSQL Login

Status
Not open for further replies.

ITSmwong

Programmer
Aug 28, 2002
5
CA
Hello everyone, I am trying to install PHPbb on my Linux server and I can't seem to login to PostgreSQL database server. It is asking me to enter the administration login and password. If there a default username and password for this because I don't remember ever setting one up when I installed Redhat 7.3. I've tried using root account to login but it doesn't recognize it. The PostgreSQL service starts up fine without any errors. Please help, thanks.
 
The administrative account for Postgresql is usually called postmaster or postgres.
These accounts usually cant be directly logged into, but you can su to root then su to that account (check your /etc/passwd to tell what the account name is).

once sued to that account you can create new users (postgres has a separate user database) using the createuser command. I find this works best if you name the new users that same as an existing system user. Also you need to use the -P option to make it ask you for a password (otherwise you can't use password authentication)

also, you may want to check out your pg_hba.conf file. This is the host based authentication configuration and contains information as to when to ask for a password and who to allow in. The postgresql website had more information on this file.

--e
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top