[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Podstawy PostgreSQL 8



Hej

Dzięki za wszystkie odpowiedzi. Czyli rootem (administratorem)
wszystkich baz serwera PostgreSQL jest użytkownik z kontem w systemie
linux a nie jak w MySQL uzytkownik root w bazie danych, tak?

Mój plik  pg_hba.conf wygląda tak (domyślna instalacja):

-------------------------------------------------------------------------------------------
local   all         postgres                          ident sameuser
local   all         all                               ident sameuser
host    all         all         127.0.0.1/32          md5
host    all         all         ::1/128               md5
-------------------------------------------------------------------------------------------


Czyli uruchomienie

-------------------------------------------------------------------------------------------
$createuser psql_admin
-------------------------------------------------------------------------------------------

powoduje utworzenie nowego konta systemowego o takich prawach jakie ma postgres?

Pytam dlatego ponieważ nie udało mi się tego zrobić:

-------------------------------------------------------------------------------------------
$ createuser psqladmin
Shall the new role be a superuser? (y/n) y
createuser: could not connect to database postgres: FATAL:  role
"jarek" does not exist

wiec wywołuję jako postgres z dobrym haslem

$ createuser -Upostgres -W  psql_admin
Shall the new role be a superuser? (y/n) y
Password:
createuser: could not connect to database postgres: FATAL:  Ident
authentication failed for user "postgres"
-------------------------------------------------------------------------------------------

Co muszę zmienić w pg_hba.conf żeby to drugie przeszło i czemu teraz
nie może się połączyć?

--
Pozdrawiam

Reply to: