質問編集履歴

1

journalctl -xe と ystemctl status mysqld.service の結果を追加

2021/08/28 21:27

投稿

hase744
hase744

スコア57

test CHANGED
File without changes
test CHANGED
@@ -33,3 +33,91 @@
33
33
  Too many arguments ってことはどこかに余計なことが書かれているんですかね
34
34
 
35
35
  どんな原因が考えられますか?
36
+
37
+
38
+
39
+ 追記
40
+
41
+ ```command
42
+
43
+ [ec2-user@ip-10-0-0-24 ~]$ journalctl -xe
44
+
45
+ Aug 28 20:28:16 ip-10-0-0-24.ap-northeast-1.compute.internal sudo[30815]: ec2-user : TTY=pts/3 ; PWD=/home/ec2-user ; USER=root ; COMMAND=/sbin/service mysqld start
46
+
47
+ Aug 28 20:28:16 ip-10-0-0-24.ap-northeast-1.compute.internal sudo[30815]: pam_unix(sudo:session): session opened for user root by ec2-user(uid=0)
48
+
49
+ Aug 28 20:28:16 ip-10-0-0-24.ap-northeast-1.compute.internal systemd[1]: Starting MySQL Server...
50
+
51
+ -- Subject: Unit mysqld.service has begun start-up
52
+
53
+ -- Defined-By: systemd
54
+
55
+ -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
56
+
57
+ --
58
+
59
+ -- Unit mysqld.service has begun starting up.
60
+
61
+ Aug 28 20:28:18 ip-10-0-0-24.ap-northeast-1.compute.internal systemd[1]: mysqld.service: main process exited, code=exited, status=1/FAILURE
62
+
63
+ Aug 28 20:28:18 ip-10-0-0-24.ap-northeast-1.compute.internal systemd[1]: Failed to start MySQL Server.
64
+
65
+ -- Subject: Unit mysqld.service has failed
66
+
67
+ -- Defined-By: systemd
68
+
69
+ -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
70
+
71
+ --
72
+
73
+ -- Unit mysqld.service has failed.
74
+
75
+ --
76
+
77
+ -- The result is failed.
78
+
79
+ Aug 28 20:28:18 ip-10-0-0-24.ap-northeast-1.compute.internal systemd[1]: Unit mysqld.service entered failed state.
80
+
81
+ Aug 28 20:28:18 ip-10-0-0-24.ap-northeast-1.compute.internal systemd[1]: mysqld.service failed.
82
+
83
+ Aug 28 20:28:18 ip-10-0-0-24.ap-northeast-1.compute.internal sudo[30815]: pam_unix(sudo:session): session closed for user root
84
+
85
+ ```
86
+
87
+
88
+
89
+ ```command
90
+
91
+ [ec2-user@ip-10-0-0-24 ~]$ systemctl status mysqld.service
92
+
93
+ ● mysqld.service - MySQL Server
94
+
95
+ Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled)
96
+
97
+ Active: failed (Result: exit-code) since Sat 2021-08-28 20:28:18 UTC; 57min ago
98
+
99
+ Docs: man:mysqld(8)
100
+
101
+ http://dev.mysql.com/doc/refman/en/using-systemd.html
102
+
103
+ Process: 30852 ExecStart=/usr/sbin/mysqld $MYSQLD_OPTS (code=exited, status=1/FAILURE)
104
+
105
+ Process: 30829 ExecStartPre=/usr/bin/mysqld_pre_systemd (code=exited, status=0/SUCCESS)
106
+
107
+ Main PID: 30852 (code=exited, status=1/FAILURE)
108
+
109
+ Status: "Server startup in progress"
110
+
111
+
112
+
113
+ Aug 28 20:28:16 ip-10-0-0-24.ap-northeast-1.compute.internal systemd[1]: Starting MySQL Server...
114
+
115
+ Aug 28 20:28:18 ip-10-0-0-24.ap-northeast-1.compute.internal systemd[1]: mysqld.service: main process exited, code=exited, status=1/FAILURE
116
+
117
+ Aug 28 20:28:18 ip-10-0-0-24.ap-northeast-1.compute.internal systemd[1]: Failed to start MySQL Server.
118
+
119
+ Aug 28 20:28:18 ip-10-0-0-24.ap-northeast-1.compute.internal systemd[1]: Unit mysqld.service entered failed state.
120
+
121
+ Aug 28 20:28:18 ip-10-0-0-24.ap-northeast-1.compute.internal systemd[1]: mysqld.service failed.
122
+
123
+ ```