質問編集履歴

1

mariadb.log の内容を追加

2018/10/16 05:44

投稿

fhiro_tokio
fhiro_tokio

スコア66

test CHANGED
File without changes
test CHANGED
@@ -1,4 +1,66 @@
1
1
  systemctl start mariadb で起動すると、「Can't create database directory '/var/lib/mysql/mysql.sock'」となり、起動できないので、selinux を無効(Permissive)にして起動しているが、有効(Enforcing)にした状態で、起動するには、どのような設定にすればいいのでしょうか。
2
+
3
+
4
+
5
+ 【mariadb.log】
6
+
7
+ 181016 14:33:43 InnoDB: Operating system error number 13 in a file operation.
8
+
9
+ InnoDB: The error means mysqld does not have the access rights to
10
+
11
+ InnoDB: the directory.
12
+
13
+ InnoDB: File name ./ib_logfile0
14
+
15
+ InnoDB: File operation call: 'aio write'.
16
+
17
+ InnoDB: Cannot continue operation.
18
+
19
+ 181016 14:33:43 mysqld_safe Number of processes running now: 0
20
+
21
+ 181016 14:33:43 mysqld_safe mysqld restarted
22
+
23
+ 181016 14:33:43 [ERROR] mysqld: File '/mnt/data01/mariadb/aria_log_control' not found (Errcode: 13)
24
+
25
+ 181016 14:33:43 [ERROR] mysqld: Got error 'Can't open file' when trying to use aria control file '/mnt/data01/mariadb/aria_
26
+
27
+ log_control'
28
+
29
+ 181016 14:33:43 [ERROR] Plugin 'Aria' init function returned error.
30
+
31
+ 181016 14:33:43 [ERROR] Plugin 'Aria' registration as a STORAGE ENGINE failed.
32
+
33
+ 181016 14:33:43 InnoDB: The InnoDB memory heap is disabled
34
+
35
+ 181016 14:33:43 InnoDB: Mutexes and rw_locks use GCC atomic builtins
36
+
37
+ 181016 14:33:43 InnoDB: Compressed tables use zlib 1.2.7
38
+
39
+ 181016 14:33:43 InnoDB: Using Linux native AIO
40
+
41
+ 181016 14:33:43 [Note] /usr/libexec/mysqld (mysqld 5.5.60-MariaDB) starting as process 25701 ...
42
+
43
+ 181016 14:33:43 [Warning] Can't create test file /mnt/data01/mariadb/br-smp-p01.lower-test
44
+
45
+ 181016 14:33:43 InnoDB: Initializing buffer pool, size = 128.0M
46
+
47
+ 181016 14:33:43 InnoDB: Completed initialization of buffer pool
48
+
49
+ 181016 14:33:43 InnoDB: Operating system error number 13 in a file operation.
50
+
51
+ InnoDB: The error means mysqld does not have the access rights to
52
+
53
+ InnoDB: the directory.
54
+
55
+ InnoDB: File name ./ibdata1
56
+
57
+ InnoDB: File operation call: 'open'.
58
+
59
+ InnoDB: Cannot continue operation.
60
+
61
+ 181016 14:33:43 mysqld_safe mysqld from pid file /var/run/mariadb/mariadb.pid ended
62
+
63
+ 181016 14:33:44 mysqld_safe Fatal error Can't create database directory '/var/lib/mysql/mysql.sock'
2
64
 
3
65
 
4
66