teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

2

補足情報の削除

2020/10/09 07:31

投稿

_chii
_chii

スコア50

title CHANGED
File without changes
body CHANGED
@@ -69,32 +69,4 @@
69
69
  ```
70
70
 
71
71
  しかし変わらず...。
72
- もし解決方法が分かる方がいらっしゃいましたらぜひご教授をお願い致します。
72
+ もし解決方法が分かる方がいらっしゃいましたらぜひご教授をお願い致します。
73
-
74
- #補足
75
- 色々試しているうちにエラー表記が変わってしまいました...
76
- 現状でrails db:migrateを実行すると
77
-
78
- ```
79
- $ rails db:migrate
80
- rails aborted!
81
- PG::ConnectionBad: could not connect to server: Connection refused
82
- Is the server running on host "localhost" (::1) and accepting
83
- TCP/IP connections on port 5432?
84
- could not connect to server: Connection refused
85
- Is the server running on host "localhost" (127.0.0.1) and accepting
86
- TCP/IP connections on port 5432?
87
- bin/rails:4:in `<main>'
88
- Tasks: TOP => db:migrate
89
- (See full trace by running task with --trace)
90
- ```
91
- このようなエラー表示なりました。
92
- 試しにpsql -U postgresを実行しても
93
-
94
- ```
95
- $ psql -U postgres
96
- psql: error: could not connect to server: could not connect to server: No such file or directory
97
- Is the server running locally and accepting
98
- connections on Unix domain socket "/tmp/.s.PGSQL.5432"
99
- ```
100
- このようなエラーになってしまいなかなかエラーから抜けられません...

1

エラーの記述 変更

2020/10/09 07:31

投稿

_chii
_chii

スコア50

title CHANGED
File without changes
body CHANGED
@@ -69,4 +69,32 @@
69
69
  ```
70
70
 
71
71
  しかし変わらず...。
72
- もし解決方法が分かる方がいらっしゃいましたらぜひご教授をお願い致します。
72
+ もし解決方法が分かる方がいらっしゃいましたらぜひご教授をお願い致します。
73
+
74
+ #補足
75
+ 色々試しているうちにエラー表記が変わってしまいました...
76
+ 現状でrails db:migrateを実行すると
77
+
78
+ ```
79
+ $ rails db:migrate
80
+ rails aborted!
81
+ PG::ConnectionBad: could not connect to server: Connection refused
82
+ Is the server running on host "localhost" (::1) and accepting
83
+ TCP/IP connections on port 5432?
84
+ could not connect to server: Connection refused
85
+ Is the server running on host "localhost" (127.0.0.1) and accepting
86
+ TCP/IP connections on port 5432?
87
+ bin/rails:4:in `<main>'
88
+ Tasks: TOP => db:migrate
89
+ (See full trace by running task with --trace)
90
+ ```
91
+ このようなエラー表示なりました。
92
+ 試しにpsql -U postgresを実行しても
93
+
94
+ ```
95
+ $ psql -U postgres
96
+ psql: error: could not connect to server: could not connect to server: No such file or directory
97
+ Is the server running locally and accepting
98
+ connections on Unix domain socket "/tmp/.s.PGSQL.5432"
99
+ ```
100
+ このようなエラーになってしまいなかなかエラーから抜けられません...