Mattermost, Inc.

CentOS 7.1 postgresql install steps error

[root@hostname ~]# vi /var/lib/pgsql/9.4/data/pg_hba.conf
[root@hostname ~]# systemctl restart postgresql-9.4.service
[root@hostname ~]# grep md5 /var/lib/pgsql/9.4/data/pg_hba.conf
# METHOD can be "trust", "reject", "md5", "password", "gss", "sspi",
# "password" sends passwords in clear text; "md5" is preferred since
host    all             all             127.0.0.1/32            md5
[root@terrymcginnis ~]# psql --host=localhost --dbname=mattermost --username=mmuser --password
Password for user mmuser: 
psql: FATAL:  Ident authentication failed for user "mmuser"

This looks like a postgres error, maybe try asking on postgres forums?

So it works for me:

Hello,
I put trust instead of md5