LoginSignup
1
0

More than 1 year has passed since last update.

PostgreSQLで存在しているroleに対してdoes not exist

Last updated at Posted at 2021-09-16

解決したい内容

作成したはずの ”USERNAME" というロール名でDBに接続しようとするができない。

$ psql -U USERNAME -d (データベース名)
psql: error: FATAL:  role "USERNAME" does not exist

環境

  • WSL2
  • PostreSQL 12.7

改善策

USERNAME → username (ロール名を大文字から小文字に変更する。)

$ psql -U username -d (データベース名)

ロール名は小文字じゃないとだめなのかな。。。
有識者の方いらっしゃいましたら是非ご教示ください m(_ _)m


この記事が役に立ったよって方は、LGTMボタン、ぜひお願いします!!!

1
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0