データベース作成でのエラー
エラー内容がさっぱりわかりません。
解決方法教えていただけますでしょうか。
エラーメッセージ
rails db:create
could not connect to server: Connection refused (0x0000274D/10061)
Is the server running on host "localhost" (::1) and accepting
TCP/IP connections on port 5432?
could not connect to server: Connection refused (0x0000274D/10061)
Is the server running on host "localhost" (127.0.0.1) and accepting
TCP/IP connections on port 5432?
Couldn't create 'line-bot_development' database. Please check your configuration.
rails aborted!
PG::ConnectionBad: could not connect to server: Connection refused (0x0000274D/10061)
Is the server running on host "localhost" (::1) and accepting
TCP/IP connections on port 5432?
could not connect to server: Connection refused (0x0000274D/10061)
Is the server running on host "localhost" (127.0.0.1) and accepting
TCP/IP connections on port 5432?
bin/rails:4:in require' bin/rails:4:in
<main>'
Tasks: TOP => db:create
(See full trace by running task with --trace)
補足
rails version 5.2.3
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/06/03 09:01
2019/06/03 12:28