Обсуждение: Connection to database 'template1' failed.

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

Connection to database 'template1' failed.

От
"Carsten Huettl"
Дата:
<color><param>0100,0100,0100</param>Hello,


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.


<nofill>
--
Carsten Huettl - <http://www.ahorn-Net.de>
pgp-key on request

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

От
"Doran L. Barton"
Дата:
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 <fozz@iodynamics.com>
Iodynamics LLC -- "Internetworking the masses"
<URL:http://www.iodynamics.com/>