Connection to database 'template1' failed.

Поиск
Список
Период
Сортировка
Искать

Connection to database 'template1' failed.

От:
"Carsten Huettl" <CHUETTL@ahorn.sgh.uunet.de>
Дата:
0100,0100,0100Hello,


the problems continue:


bash-2.03$ createdb mydb1

Connection to database 'template1' failed.

Missing or mis-configured pg_hba.conf file

createdb: database creation failed on mydb1.


pg_hba.conf is in /usr/local/pgsql/data with right (r) for user postgres

I edit the file to give right to connet from network staions, but even 
from console 1 the createdb failed again.


???

I think I schould do it like a WindowsUser

Delete and begin from start with a compete new installation.

;-(


C.



-- 
Carsten Huettl - 
pgp-key on request

Re: [GENERAL] Connection to database 'template1' failed.

От:
"Doran L. Barton" <fozz@iodynamics.com>
Дата:
Not long ago, Carsten Huettl proclaimed...
> the problems continue:
> 
> 
> bash-2.03$ createdb mydb1
> 
> Connection to database 'template1' failed.
> 
> Missing or mis-configured pg_hba.conf file
> 
> createdb: database creation failed on mydb1.

Sounds like you did not run the 'initdb' program as the Postgres superuser.
Do this before starting up the postmaster for the first time.

-=Fozz

-- 
Doran L. Barton 
Iodynamics LLC -- "Internetworking the masses"

FAQ