pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedNew install - can't access pgsql
3+ messages / 3 participants
[nested] [flat]
* New install - can't access pgsql
@ 2006-01-04 23:55 Richard Doust <rdoust@mac.com>
0 siblings, 2 replies; 3+ messages in thread
From: Richard Doust @ 2006-01-04 23:55 UTC (permalink / raw)
To: pgsql-admin
I have just done a new compile and install of postgresql 8.1.0 on a
Mac running OS X 10.4.3 Server. This machine hosted a postgres
database in a production web application environment until recently
when I moved the application and the database to a different host on
the network. My intent is to use the old host as a development
platform. After moving the database to the new host (no problems,
compiled and installed 8.1.0 on a Mac running OS X 10.4.3 client,
backed up and restored the database), I found that I couldn't access
postgres on the old host any longer. When I tried, logged in as
postgres, the dbms user who had always in the past been able to, I
got this error:
psql: FATAL: No pg_hba.conf entry for host localhost, user postgres,
database postgres
I had been running 8.0.1 or some such, so I decided to compile 8.1.0
on the old host and deploy it and try again. Before running make
install, I deleted /usr/local/pgsql and all of its subdirectories as
root. Then I ran make install. I then ran ititdb successfully, then
try to create a database using createdb and get the same error:
psql: FATAL: No pg_hba.conf entry for host localhost, user postgres,
database postgres
Of course, the pg_hba.conf file is in the $PGDATA directory, and does
specify the defaults, which should allow postgres to access the
postgres database on localhost.
Is it perhaps looking elsewhere for pg_hba.conf? If so, how can I
find out? I'm sure this must be incredibly easy, but it's annoying me
at this point?
Thanks for any help.
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: New install - can't access pgsql
@ 2006-01-05 00:10 Snoof <mailing@snoof.cotse.net>
parent: Richard Doust <rdoust@mac.com>
1 sibling, 0 replies; 3+ messages in thread
From: Snoof @ 2006-01-05 00:10 UTC (permalink / raw)
To: Richard Doust <rdoust@mac.com>; +Cc: pgsql-admin
---------- Richard Doust wrote ----------
> Is it perhaps looking elsewhere for pg_hba.conf? If so, how can I
> find out? I'm sure this must be incredibly easy, but it's annoying me
> at this point?
Have you tried `locate pg_hba.conf`? That'll at least tell you if there are any others floating
around which you'll be able to check for the appropriate entry.
--
#!/usr/bed/snoof
use fingers;
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: New install - can't access pgsql
@ 2006-01-06 04:39 John DeSoi <desoi@pgedit.com>
parent: Richard Doust <rdoust@mac.com>
1 sibling, 0 replies; 3+ messages in thread
From: John DeSoi @ 2006-01-06 04:39 UTC (permalink / raw)
To: Richard Doust <rdoust@mac.com>; +Cc: pgsql-admin
On Jan 4, 2006, at 6:55 PM, Richard Doust wrote:
> Of course, the pg_hba.conf file is in the $PGDATA directory, and
> does specify the defaults, which should allow postgres to access
> the postgres database on localhost.
Are you sure you ran initdb as user postgres?
Maybe show us the exact pg_hba.conf entries and the exact psql
connect command/error.
John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2006-01-06 04:39 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-01-04 23:55 New install - can't access pgsql Richard Doust <rdoust@mac.com>
2006-01-05 00:10 ` Snoof <mailing@snoof.cotse.net>
2006-01-06 04:39 ` John DeSoi <desoi@pgedit.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox