LoginSignup
0
0

More than 5 years have passed since last update.

railsでpostgresを入れ替えたらsocketでエラーになったとき

Posted at

あまりないケースでしょうが、遭遇している人がいないとは限らないので・・・

rails+postgresでアプリを構築して、途中でpostgresをパッケージインストールからソースからのインストールのものに移行したところ
ソケット /var/run/postgresql/.s.PGSQL.5432
にないよ、となってエラーになる場合

・ソース版のデフォルトではsocketは/tmp
・新たにrails newしたものはつながる

という状況だったので、pg(Gemfile.lockに出てくるバージョン)を再インスト-ルで復旧しました。

多分ソース版からパッケージへの移行も同じかと思います。

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