質問編集履歴
1
エラーログの記載位置を変更しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -4,7 +4,38 @@
|
|
4
4
|
現在、Centos6と、MySQLで構築しているデータベースサーバーの後継機の構築になります。
|
5
5
|
|
6
6
|
|
7
|
+
### 試したこと
|
8
|
+
|
9
|
+
/etc/yum.repos.d/にMariaDB.repo
|
7
10
|
```
|
11
|
+
# MariaDB 10.2 CentOS repository list - created 2017-08-15 04:25 UTC
|
12
|
+
# http://downloads.mariadb.org/mariadb/repositories/
|
13
|
+
[mariadb]
|
14
|
+
name = MariaDB
|
15
|
+
baseurl = http://yum.mariadb.org/10.2/centos7-amd64
|
16
|
+
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
|
17
|
+
gpgcheck=1
|
18
|
+
```
|
19
|
+
を作成した後
|
20
|
+
yum install MariaDB-server MariaDB-client
|
21
|
+
|
22
|
+
でインストール。
|
23
|
+
ここまでは特にエラーメッセージもなかったのですが、
|
24
|
+
|
25
|
+
systemctl start mariadb
|
26
|
+
|
27
|
+
で起動すると、
|
28
|
+
```
|
29
|
+
Job for mariadb.service failed because the control process exited with error code. See "systemctl status mariadb.service" and "journalctl -xe" for details.
|
30
|
+
```
|
31
|
+
と出てしまい、MariaDBが起動できません。
|
32
|
+
|
33
|
+
kazto様に指摘受けたので、メッセージに出てきた実行結果を記載する位置を変更します。
|
34
|
+
|
35
|
+
|
36
|
+
systemctl status mariadb.service の結果
|
37
|
+
|
38
|
+
```
|
8
39
|
[root@server my.cnf.d]# systemctl status mariadb.service
|
9
40
|
● mariadb.service - MariaDB 10.2.16 database server
|
10
41
|
Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)
|
@@ -32,33 +63,22 @@
|
|
32
63
|
Hint: Some lines were ellipsized, use -l to show in full.
|
33
64
|
```
|
34
65
|
|
66
|
+
journalctl -xe は、mariadb関係でないログもありそうなので、使い方をGoogleで調べてmariadb関係を抽出しました。
|
35
67
|
|
36
|
-
### 試したこと
|
37
|
-
|
38
|
-
|
68
|
+
journalctl -u mariadb.service
|
39
69
|
```
|
40
|
-
|
70
|
+
8月 07 12:24:54 server mysqld[16463]: 2018-08-07 12:24:54 140216321677504 [W
|
71
|
+
8月 07 12:24:54 server mysqld[16463]: 2018-08-07 12:24:54 140216321677504 [N
|
72
|
+
8月 07 12:24:54 server mysqld[16463]: 2018-08-07 12:24:54 140216321677504 [W
|
73
|
+
8月 07 12:24:54 server mysqld[16463]: [90B blob data]
|
74
|
+
8月 07 12:24:54 server mysqld[16463]: 2018-08-07 12:24:54 140216321677504 [E
|
41
|
-
|
75
|
+
8月 07 12:24:54 server systemd[1]: mariadb.service: main process exited, cod
|
42
|
-
[mariadb]
|
43
|
-
|
76
|
+
8月 07 12:24:54 server systemd[1]: Failed to start MariaDB 10.2.16 database
|
44
|
-
|
77
|
+
8月 07 12:24:54 server systemd[1]: Unit mariadb.service entered failed state
|
45
|
-
|
78
|
+
8月 07 12:24:54 server systemd[1]: mariadb.service failed.
|
46
|
-
gpgcheck=1
|
47
79
|
```
|
48
|
-
を作成した後
|
49
|
-
yum install MariaDB-server MariaDB-client
|
50
80
|
|
51
|
-
でインストール。
|
52
|
-
ここまでは特にエラーメッセージもなかったのですが、
|
53
81
|
|
54
|
-
systemctl start mariadb
|
55
|
-
|
56
|
-
で起動すると、
|
57
|
-
```
|
58
|
-
Job for mariadb.service failed because the control process exited with error code. See "systemctl status mariadb.service" and "journalctl -xe" for details.
|
59
|
-
```
|
60
|
-
と出てしまい、MariaDBが起動できません。
|
61
|
-
|
62
82
|
/etc/my.cnf.d/server.cnf は
|
63
83
|
[mysqld]
|
64
84
|
port = 3306
|