質問編集履歴

2

内容変更

2022/04/08 10:27

投稿

KENT1004
KENT1004

スコア77

test CHANGED
File without changes
test CHANGED
@@ -1,4 +1,4 @@
1
- 現在EC2上でDBを作成しようとしていますがまずユーザに関するエラーが発生しています。
1
+ 現在EC2上でDBを作成しようとしていますがユーザに関するエラーが発生しています。
2
2
 
3
3
  ```ここに言語を入力
4
4
  [ec2-user@ip-XX myapp]$ rails db:create RAILS_ENV=production

1

内容変更

2022/04/08 06:24

投稿

KENT1004
KENT1004

スコア77

test CHANGED
File without changes
test CHANGED
@@ -31,10 +31,10 @@
31
31
  ```ここに言語を入力
32
32
  [ec2-user@ip-XX myapp]$ mysqld --skip-grant-tables
33
33
  2022-04-08T05:49:43.105276Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
34
- 2022-04-08T05:49:43.105400Z 0 [Warning] Can't create test file /var/lib/mysql/ip-10-0-15-88.lower-test
34
+ 2022-04-08T05:49:43.105400Z 0 [Warning] Can't create test file /var/lib/mysql/ip-XX-X-XX-XX.lower-test
35
35
  2022-04-08T05:49:43.105437Z 0 [Note] mysqld (mysqld 5.7.37) starting as process 21830 ...
36
- 2022-04-08T05:49:43.108425Z 0 [Warning] Can't create test file /var/lib/mysql/ip-10-0-15-88.lower-test
36
+ 2022-04-08T05:49:43.108425Z 0 [Warning] Can't create test file /var/lib/mysql/ip-XX-X-XX-XX.lower-test
37
- 2022-04-08T05:49:43.108441Z 0 [Warning] Can't create test file /var/lib/mysql/ip-10-0-15-88.lower-test
37
+ 2022-04-08T05:49:43.108441Z 0 [Warning] Can't create test file /var/lib/mysql/ip-XX-X-XX-XX.lower-test
38
38
  2022-04-08T05:49:43.108659Z 0 [ERROR] Could not open file '/var/log/mysql/mysqld.log' for error logging: Permission denied
39
39
  2022-04-08T05:49:43.108682Z 0 [ERROR] Aborting
40
40