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 3 years have passed since last update.

bundle exec rails db:create出来ない[Rails x PostgreSQL]

Posted at

#環境

  • ローカル環境[mac]
  • ruby 2.6.3
  • rails 6.1.3
  • pg 1.1

#bundle exec rails db:create

##エラー文

could not connect to server: No such file or directory
	Is the server running locally and accepting
	connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
Couldn't create 'weather_line_bot_development' database. Please check your configuration.
rails aborted!

##解決方法

rm /usr/local/var/postgres/postmaster.pid

bundle exec rails db:create実行したらエラーになりデータベースが作れませんでした。
色々調べた結果ファイル(postmaster.pid)を消してみたら動きました

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?