taiga@ubuntu:~$ psql -U testUser -W testDB -h localhost


psql: FATAL:  Peer authentication failed for user


옵션에 -h localhost를 붙여준다.

taiga=# \du

                             List of roles

 Role name |                   Attributes                   | Member of

-----------+------------------------------------------------+-----------

 postgres  | Superuser, Create role, Create DB, Replication | {}

 taiga     | Superuser, Create role, Create DB              | {}

'Database > PostgreSQL' 카테고리의 다른 글

psql: FATAL: Peer authentication failed for user  (0) 2016.06.27
create database in postgresql  (0) 2016.06.27
postgresql user list  (0) 2016.06.27
PostgreSQL - Ubuntu Basic 설치 가정  (0) 2014.09.02
PostgreSQL Table 전체 조회  (0) 2013.03.25
PostgreSQL  (0) 2013.01.29

+ Recent posts