hasen's tech life

Twitter: @hasen

"psql: FATAL: role "USER_NAME" does not exist"というエラーが出たので.

# "psql: FATAL: role "USER_NAME" does not exist"というエラーが出たので対応.

# error
$ psql -UUSER_NAME
> psql: FATAL: role "USER_NAME" does not exist

# success
$ psql -d template1
> psql (9.4.4)
> Type "help" for help.
> template1=#

参考: psql: FATAL: database “user” does not exist