質問編集履歴

1

エラーログの記載位置を変更しました。

2018/08/07 03:42

投稿

ky_46
ky_46

スコア92

test CHANGED
File without changes
test CHANGED
@@ -10,6 +10,68 @@
10
10
 
11
11
 
12
12
 
13
+ ### 試したこと
14
+
15
+
16
+
17
+ /etc/yum.repos.d/にMariaDB.repo
18
+
19
+ ```
20
+
21
+ # MariaDB 10.2 CentOS repository list - created 2017-08-15 04:25 UTC
22
+
23
+ # http://downloads.mariadb.org/mariadb/repositories/
24
+
25
+ [mariadb]
26
+
27
+ name = MariaDB
28
+
29
+ baseurl = http://yum.mariadb.org/10.2/centos7-amd64
30
+
31
+ gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
32
+
33
+ gpgcheck=1
34
+
35
+ ```
36
+
37
+ を作成した後
38
+
39
+ yum install MariaDB-server MariaDB-client
40
+
41
+
42
+
43
+ でインストール。
44
+
45
+ ここまでは特にエラーメッセージもなかったのですが、
46
+
47
+
48
+
49
+ systemctl start mariadb
50
+
51
+
52
+
53
+ で起動すると、
54
+
55
+ ```
56
+
57
+ Job for mariadb.service failed because the control process exited with error code. See "systemctl status mariadb.service" and "journalctl -xe" for details.
58
+
59
+ ```
60
+
61
+ と出てしまい、MariaDBが起動できません。
62
+
63
+
64
+
65
+ kazto様に指摘受けたので、メッセージに出てきた実行結果を記載する位置を変更します。
66
+
67
+
68
+
69
+
70
+
71
+ systemctl status mariadb.service の結果
72
+
73
+
74
+
13
75
  ```
14
76
 
15
77
  [root@server my.cnf.d]# systemctl status mariadb.service
@@ -66,57 +128,35 @@
66
128
 
67
129
 
68
130
 
69
-
70
-
71
- ### したこと
131
+ journalctl -xe は、mariadb関係でないログもありそうなので、使い方をGoogleで調べてmariadb関係を抽出まし
72
-
73
-
74
-
132
+
133
+
134
+
75
- /etc/yum.repos.d/にMariaDB.repo
135
+ journalctl -u mariadb.service
76
-
136
+
77
- ```
137
+ ```
78
-
138
+
79
- # MariaDB 10.2 CentOS repository list - created 2017-08-15 04:25 UTC
139
+ 8月 07 12:24:54 server mysqld[16463]: 2018-08-07 12:24:54 140216321677504 [W
140
+
80
-
141
+ 8月 07 12:24:54 server mysqld[16463]: 2018-08-07 12:24:54 140216321677504 [N
142
+
143
+ 8月 07 12:24:54 server mysqld[16463]: 2018-08-07 12:24:54 140216321677504 [W
144
+
145
+ 8月 07 12:24:54 server mysqld[16463]: [90B blob data]
146
+
147
+ 8月 07 12:24:54 server mysqld[16463]: 2018-08-07 12:24:54 140216321677504 [E
148
+
81
- # http://downloads.mariadb.org/mariadb/repositories/
149
+ 8月 07 12:24:54 server systemd[1]: mariadb.service: main process exited, cod
82
-
83
- [mariadb]
150
+
84
-
85
- name = MariaDB
151
+ 8月 07 12:24:54 server systemd[1]: Failed to start MariaDB 10.2.16 database
86
-
152
+
87
- baseurl = http://yum.mariadb.org/10.2/centos7-amd64
153
+ 8月 07 12:24:54 server systemd[1]: Unit mariadb.service entered failed state
88
-
154
+
89
- gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
155
+ 8月 07 12:24:54 server systemd[1]: mariadb.service failed.
90
-
91
- gpgcheck=1
156
+
92
-
93
- ```
157
+ ```
94
-
95
- を作成した後
158
+
96
-
97
- yum install MariaDB-server MariaDB-client
159
+
98
-
99
-
100
-
101
- でインストール。
102
-
103
- ここまでは特にエラーメッセージもなかったのですが、
104
-
105
-
106
-
107
- systemctl start mariadb
108
-
109
-
110
-
111
- で起動すると、
112
-
113
- ```
114
-
115
- Job for mariadb.service failed because the control process exited with error code. See "systemctl status mariadb.service" and "journalctl -xe" for details.
116
-
117
- ```
118
-
119
- と出てしまい、MariaDBが起動できません。
120
160
 
121
161
 
122
162