質問編集履歴

1

文鳥の修正

2021/01/24 11:02

投稿

yozakura_dayo
yozakura_dayo

スコア4

test CHANGED
File without changes
test CHANGED
@@ -24,53 +24,37 @@
24
24
 
25
25
 
26
26
 
27
+ 追記
28
+
29
+ [https://qiita.com/hayano-t/items/a074f1f2f889d7e92fcc](https://qiita.com/hayano-t/items/a074f1f2f889d7e92fcc)
30
+
27
- ### 発生しているエラーメッセージ
31
+ を参考に、heoku stackを18、
32
+
33
+
34
+
28
-
35
+ database.ymlに下記を追記しました。
36
+
37
+
38
+
29
-
39
+ production:
40
+
30
-
41
+ url: <%= ENV['DATABASE_URL'] %>
42
+
43
+
44
+
45
+ しかし、下記のエラーが出ている状態です。
46
+
31
- ``` 
47
+ ```ターミナル
32
-
33
- $ heroku run rails db:migrate
48
+
34
-
35
-
36
-
37
- rails aborted!
38
-
39
- ActiveRecord::ConnectionNotEstablished: SSL connection error: error:1425F102:SSL routines:ssl_choose_client_version:unsupported protocol
49
+ ActiveRecord::ConnectionNotEstablished: Access denied for user 'bead377f5a56c8'@'ip-10-0-118-207.ec2.internal' (using password: YES)
40
-
41
-
42
-
43
- (中略)
50
+
44
-
45
- Caused by:
51
+
46
-
47
- Mysql2::Error::ConnectionError: SSL connection error: error:1425F102:SSL routines:ssl_choose_client_version:unsupported protocol
48
52
 
49
53
  (中略)
50
54
 
51
- ```
55
+
52
-
53
-
54
-
55
- ```
56
+
56
-
57
- $ heroku run rails db:migrate:status
58
-
59
-
60
-
61
- rails aborted!
62
-
63
- ActiveRecord::ConnectionNotEstablished: SSL connection error: error:1425F102:SSL routines:ssl_choose_client_version:unsupported protocol
64
-
65
-
66
-
67
- (中略)
68
-
69
- Caused by:
70
-
71
- Mysql2::Error::ConnectionError: SSL connection error: error:1425F102:SSL routines:ssl_choose_client_version:unsupported protocol
57
+ Mysql2::Error::ConnectionError: Access denied for user 'bead377f5a56c8'@'ip-10-0-118-207.ec2.internal' (using password: YES)
72
-
73
- (中略)
74
58
 
75
59
  ```
76
60
 
@@ -130,6 +114,8 @@
130
114
 
131
115
  password: <%= ENV['MYAPP_DATABASE_PASSWORD'] %>
132
116
 
117
+  url: <%= ENV['DATABASE_URL'] %>
118
+
133
119
  ```
134
120
 
135
121