LoginSignup
4
3

More than 5 years have passed since last update.

[PostgreSQL] MacでPostgreSQLが起動できない!ときの解決

Posted at

[PostgreSQL] MacでPostgreSQLが起動できない!ときの解決

Mac OSXアップデート後によくなる。いつも忘れる。

自動起動にしてるのに起動しない。

起動してみるとエラー

@withelmo ~$ pg_ctl -l /usr/local/var/postgres/server.log start
pg_ctl: another server might be running; trying to start server anyway
server starting

ps で見てもプロセスがあるわけではない。

@withelmo ~$ ls -la /usr/local/var/postgres/postmaster.pid
-rw-------  1 withelmo  admin  79  4  7 03:42 /usr/local/var/postgres/postmaster.pid

pidファイルが残ってしまってるのが問題とのこと。さくっと削除。

@withelmo ~$ pg_ctl -l /usr/local/var/postgres/server.log start
server starting

無事に起動。888

4
3
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
4
3