Ask a Question related to Ruby, Design and Development.
- Kurt M. Dresner #1
postgres I'm trying to access a PostgreSQL database on my machine, however, I get
the following error:
irb(main):003:0> conn = PGconn.connect("localhost", 5432, "", "",
"music")
PGError: FATAL: IDENT authentication failed for user "kdresner"
from (irb):3:in `connect'
from (irb):3
I created the database, so I should have the rights to access it...
-Kurt
Kurt M. Dresner Guest
-
BLOBS with PostGres
CF7 and PostgreSQL 8 on separate boxes. I need to allow a user to upload a binary object and have CF insert it into a table on the DB server as a... -
Postgres 8 release
When is the next release 8.00 will became stable or available? Bruno __________________________________________________________________________... -
php + postgres
I've got this connection script for my database: <?php $password = md5("xxxxx"); $user = "user"; $host = "localhost"; $database = "base"; $link... -
[OT] postgres
> I can connect through DBI, but not using the postgres module. Very Hm. Does your postgres startup command have a "-i" in it somewhere? Tom -
[OT] postgres
> It doesn't appear to. ps aux | grep postgresql doesn't show anything You might try adding a "-i" to the "postmaster start" command. That'll... - Dmitry Borodaenko #2
[OT] Re: postgres On Sat, Aug 16, 2003 at 11:34:58AM +0900, Kurt M. Dresner wrote:
KMD> irb(main):003:0> conn = PGconn.connect("localhost", 5432, "", "",
KMD> "music")
KMD> PGError: FATAL: IDENT authentication failed for user "kdresner"
<...>
KMD> I created the database, so I should have the rights to access it..
Not necessarily. What's in your pg_hba.conf and pg_ident.conf?
Also, don't forget that connecting directly ('local' in pg_hba.conf) is
not the same as connecting to localhost over TCP.
--
Dmitry Borodaenko
Dmitry Borodaenko Guest
- Philipp Ott #3
Re: postgres Hi!
Kurt M. Dresner wrote:Most of the times we are experiencing such problems the following> I'm trying to access a PostgreSQL database on my machine, however, I get
> the following error:
> irb(main):003:0> conn = PGconn.connect("localhost", 5432, "", "",
> "music")
> PGError: FATAL: IDENT authentication failed for user "kdresner"
> from (irb):3:in `connect'
> from (irb):3
> I created the database, so I should have the rights to access it...
stuffs were wrong.
1) postgres needs to be startet with -i (for TCPIP access)
2) pg_hba.conf has to include host 127.0.0.1 and preferable also the
own IP address - for some reasons on some installations the postgres
library connects to 127.0.0.1 with some eth0 interfaces IP address and
then it didnt work unless this IP was also listed in pg_hba.conf.
Haven't figured out yet why :-(
3) createuser somebody
You can also look into postgres[ql].log and check there for error
messages.
Regards
Philipp Ott
Philipp Ott Guest




