Error message:
The error means mysqld does not has the access rights to the directory.
Tail/var/log/mysqld.log
151125 18:21:50 mysqld_safe starting mysqld daemon with databases from /oradata/mysql151125 18:21:50 [Note] /usr/sbin/mysqld (mysqld 5.5.46) STARTING AS PROCESS 57423&NBSP, ..... 151125 18:21:50 [warning] can ' t create test file /oradata/mysql/ Dpi-xz-cloud-db-1.lower-test151125 18:21:50 [warning] can ' T create test file /oradata/mysql/DPI-XZ-cloud-db-1.lower-test151125 18:21:50 [Note] Plugin ' Federated ' is disabled.151125 18:21:50 innodb: the innodb memory heap is disabled151125 18:21:50 InnoDB: Mutexes and rw_locks use GCC atomic builtins151125 18:21:50 innodb: compressed tables use zlib 1.2.3151125 18:21:50 innodb: using linux native aio151125 18:21:50 innodb: initializing buffer pool, size = 4.0g151125 18:21:50 Innodb: completed initialization of buffer pool151125 18:21:50 innodb : operating system error number 13 in a file operation. innodb: the error means mysqld does not have the access Rights toinnodb: the directory. innodb: file name ./ibdata1innodb: file operation call: ' Create '. Innodb: cannot continue operation.151125 18:21:50 mysqld_safe mysqld from pid file /oradata/mysql/dpi-xz-cloud-db-1.pid ended
Solution: Setenforce 0
This article is from the "unix-like" blog, make sure to keep this source http://alipay.blog.51cto.com/7119970/1716850
The error means mysqld does not has the access rights to the directory.