Arquivo pg_hba.conf
Estava usando o Postgresql tranquilamente, mas tive problemas no servidor Linux e reinstalei. Agora consigo inicializar o postgre normalmente, mas na hora de criar um banco com a seguinte sintaxe aparece um erro:
/usr/local/pgsql/bin/createdb -U postgres meu_bd
ERRO: createdb: could not connect to database template1: FATAL: IDENT authentication failed for user ´postgres´
O conteudo do meu arquivo pg_hba.conf é o seguinte:
host all all 10.0.1.0 255.255.255.0 trust
/usr/local/pgsql/bin/createdb -U postgres meu_bd
ERRO: createdb: could not connect to database template1: FATAL: IDENT authentication failed for user ´postgres´
O conteudo do meu arquivo pg_hba.conf é o seguinte:
host all all 10.0.1.0 255.255.255.0 trust
Tcarvalho
Curtidas 0
Respostas
Tcarvalho
14/07/2004
Problema resolvido:
Mudar o arquivo /var/lib/pgsql/data/postgresql.conf
a linha: #tcpip_socket=false. Se existir, remova a tralha ´´ e substitua a palavra ´false´ por ´true´.
Mudar o arquivo /var/lib/pgsql/data/postgresql.conf
a linha: #tcpip_socket=false. Se existir, remova a tralha ´´ e substitua a palavra ´false´ por ´true´.
GOSTEI 0