teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

mariadb.log の内容を追加

2018/10/16 05:44

投稿

fhiro_tokio
fhiro_tokio

スコア66

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