質問編集履歴
1
追記(detabase.ymlの中身など)
test
CHANGED
File without changes
|
test
CHANGED
@@ -143,3 +143,107 @@
|
|
143
143
|
|
144
144
|
|
145
145
|
どなたか、ヒント、解決策などお教えいただけないでしょうか。
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
### 追記
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
systemctl status mysqldは、
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
```
|
158
|
+
|
159
|
+
[noteman@ip-10-0-0-153 アプリ]$ systemctl status mysqld
|
160
|
+
|
161
|
+
● mysqld.service - MySQL Server
|
162
|
+
|
163
|
+
Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled)
|
164
|
+
|
165
|
+
Active: active (running) since 木 2021-04-22 04:52:21 UTC; 7h ago
|
166
|
+
|
167
|
+
Docs: man:mysqld(8)
|
168
|
+
|
169
|
+
http://dev.mysql.com/doc/refman/en/using-systemd.html
|
170
|
+
|
171
|
+
Process: 25769 ExecStart=/usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid $MYSQLD_OPTS (code=exited, status=0/SUCCESS)
|
172
|
+
|
173
|
+
Process: 25751 ExecStartPre=/usr/bin/mysqld_pre_systemd (code=exited, status=0/SUCCESS)
|
174
|
+
|
175
|
+
Main PID: 25774 (mysqld)
|
176
|
+
|
177
|
+
CGroup: /system.slice/mysqld.service
|
178
|
+
|
179
|
+
└─25774 /usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
```
|
184
|
+
|
185
|
+
でした。
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
detabase.ymlの中身です。
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
```ここに言語を入力
|
194
|
+
|
195
|
+
detabaseyml
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
default: &default
|
200
|
+
|
201
|
+
adapter: mysql2
|
202
|
+
|
203
|
+
encoding: utf8mb4
|
204
|
+
|
205
|
+
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
|
206
|
+
|
207
|
+
username: root
|
208
|
+
|
209
|
+
password:
|
210
|
+
|
211
|
+
socket: /tmp/mysql.sock
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
development:
|
216
|
+
|
217
|
+
<<: *default
|
218
|
+
|
219
|
+
database: アプリ_development
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
test:
|
226
|
+
|
227
|
+
<<: *default
|
228
|
+
|
229
|
+
database: アプリ_test
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
production:
|
234
|
+
|
235
|
+
<<: *default
|
236
|
+
|
237
|
+
database: アプリ_production
|
238
|
+
|
239
|
+
username: root
|
240
|
+
|
241
|
+
password: <%= ENV['DATABASE_PASSWORD'] %>
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
```
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
です。
|