J'installe un serveur de réplication et lorsque je tente de démarrer le service MySQL pour la première fois, il échoue:moteur de stockage inconnu/non pris en charge: 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
Je confirme que l'utilisateur mysql
voit et est capable d'écrire au /databases/mysql/mysql_slow_queries.log
. Puis j'ai vérifié getenforce
et voir qu'il est réglé sur Enforcing
.
Comment configurer MySQL pour qu'il fonctionne correctement avec SELinux?