LoginSignup
5
2

More than 3 years have passed since last update.

ローカルでpostgreSQLに接続できなくなった時(備忘録)

Last updated at Posted at 2019-06-25

エラー内容

could not connect to server: Connection refused Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432? could not connect to server: Connection refused Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432?

$ brew uninstall postgresql
$ rm -rf /usr/local/var/postgres/
$ brew install postgresql

もちろん、ローカルのpostgreデータ吹っ飛ぶので注意。

5
2
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
5
2