|
错误提示:
1
| The error means mysqld does not have the access rights to the directory.
|
tail /var/log/mysqld.log
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
| 151125 18:21:50 mysqld_safe Starting mysqld daemon with databases from /oradata/mysql
151125 18:21:50 [Note] /usr/sbin/mysqld (mysqld 5.5.46) starting as process 57423 ...
151125 18:21:50 [Warning] Can't create test file /oradata/mysql/DPI-XZ-cloud-db-1.lower-test
151125 18:21:50 [Warning] Can't create test file /oradata/mysql/DPI-XZ-cloud-db-1.lower-test
151125 18:21:50 [Note] Plugin 'FEDERATED' is disabled.
151125 18:21:50 InnoDB: The InnoDB memory heap is disabled
151125 18:21:50 InnoDB: Mutexes and rw_locks use GCC atomic builtins
151125 18:21:50 InnoDB: Compressed tables use zlib 1.2.3
151125 18:21:50 InnoDB: Using Linux native AIO
151125 18:21:50 InnoDB: Initializing buffer pool, size = 4.0G
151125 18:21:50 InnoDB: Completed initialization of buffer pool
151125 18:21:50 InnoDB: Operating system error number 13 in a file operation.
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory.
InnoDB: File name ./ibdata1
InnoDB: 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
|
解决方案:setenforce 0
|
|