0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Rails and PostgreSQL: Role postgres does not exist エラーに悩まされた

Posted at

postgresをバージョンアップして、railsサーバーを立ち上げようとしたら
Role postgres does not exist というエラーが出てきた。

色々調べたら以下のコマンドで解決できました。
createuser -s -r postgres

postgresにはロールが存在して、ロールによって権限を変えたり所有物が異なったりするらしい。
で、postgresというロールはおそらく大元のデータベースを作成するやつみたいですが、それが今回は存在しなかったらしい。理由はわかりません。。。。

そこで、ロールを作成したら解決したということですね。

0
0
0

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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?