|
Hi, I am trying to access postgresql version 7.3 using pgadmin III from windows 2000 OS but i always keep getting the error Fatal - password authentication failed for user root. i have allowed access in the pg_hba.conf file for all users to access all databases by the defined ip's but still whenever i try to access the database from pgadmin remotely i get the error Fatal - password authentication failed for user root. I have also a set tcp ip = true in postgresql.conf. Can you please give me some hints as to what could be the problem. Thanks regards, Amit ---------------------------(end of broadcast)--------------------------- TIP 4: Don't 'kill -9' the postmaster |
|
> -----Original Message----- > From: [hidden email] > [mailto:[hidden email]] On Behalf Of Amit Sharma > Sent: 24 May 2005 12:02 > To: [hidden email] > Subject: [pgadmin-support] cannot access postgresql 7.3 via > pgadmin III > > > > Hi, > > I am trying to access postgresql version 7.3 using pgadmin > III from windows > 2000 OS but i always keep getting the error Fatal - password > authentication > failed for user root. i have allowed access in the > pg_hba.conf file for all > users to access all databases by the defined ip's but still > whenever i try > to access the database from pgadmin remotely i get the error Fatal - > password authentication failed for user root. I have also a > set tcp ip = > true in postgresql.conf. Can you please give me some hints as > to what could > be the problem. Do you have a PostgreSQL user called root? The PostgreSQL superuser account is normally 'postgres'. Regards. Dave. ---------------------------(end of broadcast)--------------------------- TIP 8: explain analyze is your friend |
|
Hi ,
I have a database called sabdb. I can use the pasql client from linux and connect to it via root, so i guess root access to the db is allowed. The only problem is to connect to it via pgadmin III on win 2k OS via external hosts whose IP's are already entered into the pg_hba.conf . Please view the attached files for your reference. I am a novice in postgresql and so i want to connect to the database via a windows tool and check the database. Thanks in advance for all the help Regards, Amit -----Original Message----- From: Dave Page [mailto:[hidden email]] Sent: Tuesday, May 24, 2005 3:36 PM To: [hidden email]; [hidden email] Subject: RE: [pgadmin-support] cannot access postgresql 7.3 via pgadmin III > -----Original Message----- > From: [hidden email] > [mailto:[hidden email]] On Behalf Of Amit Sharma > Sent: 24 May 2005 12:02 > To: [hidden email] > Subject: [pgadmin-support] cannot access postgresql 7.3 via > pgadmin III > > > > Hi, > > I am trying to access postgresql version 7.3 using pgadmin > III from windows > 2000 OS but i always keep getting the error Fatal - password > authentication > failed for user root. i have allowed access in the > pg_hba.conf file for all > users to access all databases by the defined ip's but still > whenever i try > to access the database from pgadmin remotely i get the error Fatal - > password authentication failed for user root. I have also a > set tcp ip = > true in postgresql.conf. Can you please give me some hints as > to what could > be the problem. account is normally 'postgres'. Regards. Dave. ---------------------------(end of broadcast)--------------------------- TIP 9: the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match |
|
In reply to this post by Amit Sharma-17
> -----Original Message----- > From: Amit Sharma [mailto:[hidden email]] > Sent: 24 May 2005 12:59 > To: Dave Page; [hidden email] > Subject: RE: [pgadmin-support] cannot access postgresql 7.3 > via pgadmin III > > Hi , > > I have a database called sabdb. I can use the pasql client > from linux and > connect to it via root, so i guess root access to the db is > allowed. The > only problem is to connect to it via pgadmin III on win 2k OS > via external > hosts whose IP's are already entered into the pg_hba.conf . > Please view the > attached files for your reference. I am a novice in > postgresql and so i want > to connect to the database via a windows tool and check the database. What does "select * from pg_user" return? Is there a user called root in the result set? Regards, Dave ---------------------------(end of broadcast)--------------------------- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq |
|
Hi Dave,
Yeah the output of select * from pg_user; returns two values. 1. root (usesysid - 100)with some password in encrypted form 2. postgres (usesysid - 1) with password in encrypted form What is the password of the user postgres???, so i can try to connect via this one and check. Thanks Regards Amit -----Original Message----- From: Dave Page [mailto:[hidden email]] Sent: Tuesday, May 24, 2005 4:24 PM To: [hidden email]; [hidden email] Subject: RE: [pgadmin-support] cannot access postgresql 7.3 via pgadmin III > -----Original Message----- > From: Amit Sharma [mailto:[hidden email]] > Sent: 24 May 2005 12:59 > To: Dave Page; [hidden email] > Subject: RE: [pgadmin-support] cannot access postgresql 7.3 > via pgadmin III > > Hi , > > I have a database called sabdb. I can use the pasql client > from linux and > connect to it via root, so i guess root access to the db is > allowed. The > only problem is to connect to it via pgadmin III on win 2k OS > via external > hosts whose IP's are already entered into the pg_hba.conf . > Please view the > attached files for your reference. I am a novice in > postgresql and so i want > to connect to the database via a windows tool and check the database. What does "select * from pg_user" return? Is there a user called root in the result set? Regards, Dave ---------------------------(end of broadcast)--------------------------- TIP 6: Have you searched our list archives? http://archives.postgresql.org |
|
In reply to this post by Amit Sharma-17
> -----Original Message----- > From: Amit Sharma [mailto:[hidden email]] > Sent: 24 May 2005 13:38 > To: Dave Page; [hidden email] > Subject: RE: [pgadmin-support] cannot access postgresql 7.3 > via pgadmin III > > Hi Dave, > > Yeah the output of select * from pg_user; returns two values. > > 1. root (usesysid - 100)with some password in encrypted form > 2. postgres (usesysid - 1) with password in encrypted form > > What is the password of the user postgres???, so i can try to > connect via > this one and check. I have no idea - it's your system :-) Try setting the password using ALTER USER root WITH PASSWORD 'password'; (http://www.postgresql.org/docs/8.0/interactive/sql-alteruser.html). My guess is that no password is currently set, so you cannot login remotely because one is required. BTW, you might want to change the password entries in pg_hba.conf to md5 as well - this will prevent plain text passwords being sent over the wire. Regards, Dave ---------------------------(end of broadcast)--------------------------- TIP 2: you can get off all lists at once with the unregister command (send "unregister YourEmailAddressHere" to [hidden email]) |
| Powered by Nabble | Edit this page |
