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?

failed to connect to `user=myuser database=myapp`: [::1]:5432 (localhost): server error: FATAL: role "myuser" does not exist (SQLSTATE 28000) (localhost): server error: FATAL: role "myuser" does not exist (SQLSTATE 28000) exit status 1

0
Posted at

はじめに

個人開発でGoを使った環境構築を行っていた

問題

エラーのrole "myuser" does not existは、PostgreSQLのデータボリュームが前に別の設定で作られていて、今のmyuserが反映されていなかった。

解決方法

Dockerのポートを5432→5433にして番号の被りを直す

終わりに

ポート番号を意識することでどの部屋をのぞいているのかそして誰がどうやって接続しているのかを知るいい機会になった

AIによる図解

  • before
  • after
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?