質問編集履歴
3
修正
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
本番環境にて、rails db:
|
1
|
+
本番環境にて、rails db:create時のソケットエラー
|
test
CHANGED
@@ -24,10 +24,6 @@
|
|
24
24
|
|
25
25
|
|
26
26
|
|
27
|
-
createはdoneとなり、migrateで上記のエラーになります。
|
28
|
-
|
29
|
-
|
30
|
-
|
31
27
|
#試したこと
|
32
28
|
|
33
29
|
ec2ターミナルで、
|
2
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -18,7 +18,7 @@
|
|
18
18
|
|
19
19
|
```
|
20
20
|
|
21
|
-
Mysql2::Error::ConnectionError: Can't connect to local MySQL server through socket '/var/
|
21
|
+
Mysql2::Error::ConnectionError: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2 "No such file or directory")
|
22
22
|
|
23
23
|
```
|
24
24
|
|
1
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -68,7 +68,7 @@
|
|
68
68
|
|
69
69
|
password: <%= ENV['DB_PASSWORD'] %>
|
70
70
|
|
71
|
-
socket: /var/
|
71
|
+
socket: /var/lib/mysql/mysql.sock ←ここです
|
72
72
|
|
73
73
|
```
|
74
74
|
|