Arquivo pg_hba.conf
14/07/2004
0
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
Curtir tópico
+ 0
Responder
Posts
15/07/2004
Tcarvalho
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´.
Responder
Clique aqui para fazer login e interagir na Comunidade :)