Friday, 18 November 2011

Starting MySQL Server in Fedora 16

The selinux-policy package in Fedora 16 had a bug which prevents MySQL server from starting when SELinux is in enforcing mode. Fedora has released an update for selinux-policy which can be updated from updates-testing repository.

To install thisupdate run the following command:
yum update selinux-policy --enablerepo=updates-testing

The relevant error messages in /var/log/message:
Nov 17 18:44:12 es016 kernel: [  172.476165] type=1400 audit(1321535652.092:14): avc:  denied  { read } for  pid=1907 comm="mysqld_safe" path="/bin/bash" dev=dm-1 ino=396459 scontext=system_u:system_r:mysqld_safe_t:s0 tcontext=system_u:object_r:shell_exec_t:s0 tclass=file
Nov 17 18:44:12 es016 systemd[1]: mysqld.service: control process exited, code=exited status=127
Nov 17 18:44:12 es016 systemd[1]: mysqld.service holdoff time over, scheduling restart.
Nov 17 18:44:12 es016 systemd[1]: Job pending for unit, delaying automatic restart.
Nov 17 18:44:12 es016 systemd[1]: Unit mysqld.service entered failed state.

More details:
Bug Report: RHBZ #754072
Package update: