質問編集履歴

3

追記

2021/10/14 12:01

投稿

mokosamejima
mokosamejima

スコア11

test CHANGED
File without changes
test CHANGED
@@ -203,3 +203,27 @@
203
203
  ## エラー解決に参考にした記事
204
204
 
205
205
  https://qiita.com/naota7118/items/b62d71484e21d6739d68
206
+
207
+
208
+
209
+ ## socket: /var/lib/mysql/mysql.sockを消したら
210
+
211
+ ```ここに言語を入力
212
+
213
+ [ec2-user@ip-172-31-35-186 road]$ rails db:create RAILS_ENV=production
214
+
215
+ Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
216
+
217
+ Couldn't create 'rooad_production' database. Please check your configuration.
218
+
219
+ rails aborted!
220
+
221
+ Mysql2::Error::ConnectionError: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
222
+
223
+ bin/rails:4:in `<main>'
224
+
225
+ Tasks: TOP => db:create
226
+
227
+ (See full trace by running task with --trace)
228
+
229
+ ```

2

追記

2021/10/14 12:00

投稿

mokosamejima
mokosamejima

スコア11

test CHANGED
File without changes
test CHANGED
@@ -172,6 +172,34 @@
172
172
 
173
173
 
174
174
 
175
+ ④MySQLのrootユーザーのパスワードの確認
176
+
177
+ ```ここに言語を入力
178
+
179
+ $ mysql -u root -p
180
+
181
+ Enter password:
182
+
183
+ Welcome to the MariaDB monitor. Commands end with ; or \g.
184
+
185
+ Your MariaDB connection id is 37
186
+
187
+ Server version: 5.5.68-MariaDB MariaDB Server
188
+
189
+
190
+
191
+ Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
192
+
193
+
194
+
195
+ Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
196
+
197
+
198
+
199
+ ```
200
+
201
+
202
+
175
203
  ## エラー解決に参考にした記事
176
204
 
177
205
  https://qiita.com/naota7118/items/b62d71484e21d6739d68

1

追記

2021/10/14 11:07

投稿

mokosamejima
mokosamejima

スコア11

test CHANGED
File without changes
test CHANGED
@@ -169,3 +169,9 @@
169
169
  sudo: mysql.server: コマンドが見つかりません
170
170
 
171
171
  ```
172
+
173
+
174
+
175
+ ## エラー解決に参考にした記事
176
+
177
+ https://qiita.com/naota7118/items/b62d71484e21d6739d68