Create DB ends with error "FATAL: Ident authentication failed for user "postgres""

From: Fabricio Pedroso Jorge <fpjbito(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Create DB ends with error "FATAL: Ident authentication failed for user "postgres""
Date: 2016-12-02 17:58:45
Message-ID: CAJDTwK1w0S6nhiv6vbLhQ+k_ycCoYHj=EUP5jwtD6=ZVX1vbYw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi all,

PostgreSQL version...: 9.5.5
OS...........................: Oracle Linux 6.5 64 bits

I am quite new in the PostgreSQL world and i'm trying to create a new db
with the following sintax, using the "postgres" OS user:

[postgres(at)vm-ora12 ~]$ createdb -h localhost -p 5432 -U postgres dbdev

*createdb: could not connect to database template1: FATAL: Ident
authentication failed for user "postgres"*

I did the install via YUM, as "root" user using the PostgreSQL repository.
the service is ip and running:

*[root(at)vm-ora12 ~]# service postgresql-9.5 statuspostgresql-9.5 (pid
18507) is running...*

Why am i getting the above error while trying to create a new database?

Thanks for the attention and help.

--
*Fabrício Pedroso Jorge.*

Administrador de Banco de Dados

certificacaobd.com.br <http://certificacaodb.com.br>

*Resumo Profissional:*
http://br.linkedin.com/in/fabriciojorge

*Contatos:*
+ 55 91 988991116
skype: fabricio.pedroso.jorge
fpjbito(at)gmail(dot)com

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Joshua D. Drake 2016-12-02 18:03:13 Re: Create DB ends with error "FATAL: Ident authentication failed for user "postgres""
Previous Message Tom DalPozzo 2016-12-02 17:40:14 INSERT - UPDATE throughput oscillating and SSD activity after stopping the client