我設置複製服務器,當我嘗試啓動mysql服務的第一次,它失敗:未知/不支持的存儲引擎:InnoDB的
[[email protected] mysql]# service mysqld start
MySQL Daemon failed to start.
Starting mysqld: [FAILED]
[[email protected] mysql]# tail /var/log/mysqld.log
151013 13:41:27 [ERROR] Plugin 'InnoDB' init function returned error.
151013 13:41:27 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
/usr/libexec/mysqld: File '/databases/mysql/mysql_slow_queries.log' not found (Errcode: 13)
151013 13:41:27 [ERROR] Could not use /databases/mysql/mysql_slow_queries.log for logging (error 13). Turning logging off for the whole duration of the MySQL server process. To turn it on again: fix the cause, shutdown the MySQL server and restart it.
151013 13:41:27 [ERROR] Unknown/unsupported storage engine: InnoDB
151013 13:41:27 [ERROR] Aborting
151013 13:41:27 [Note] /usr/libexec/mysqld: Shutdown complete
151013 13:41:27 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
我證實,用戶mysql
看到的是能夠寫入/databases/mysql/mysql_slow_queries.log
。
然後我檢查了getenforce
並看到它設置爲Enforcing
。
如何配置MySQL與SELinux良好地配合?