Re: MySQL and SELinux

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Henry Hartley said:
>

> I've just upgraded a machine to FC3 (actually, it's a clean install on a
> new hard drive because the old drive was dying).  I thought I had asked
> for MySQL during the install but apparently not.  I installed it with yum,
>  however, with no problems.  The problem is that SELinux and MySQL don't
> seem to be playing nice with each other.  If I turn enforcing off
> (setenforce 0)
> then mysql works fine but if it's on, I get the following:
>
> [root@blackforest ~]# service mysqld start
> Timeout error occurred trying to start MySQL Daemon.
> Starting MySQL:                                            [FAILED]
>
>
> and in /var/log/messages:
>
> Dec 29 10:06:33 blackforest kernel: audit(1104332793.451:0): avc:  denied
> {
> append } for  pid=9353 exe=/usr/libexec/mysqld path=/var/log/mysqld.log
> dev=hda3 ino=81983 scontext=root:system_r:mysqld_t
> tcontext=root:object_r:var_log_t tclass=file

It looks like your files aren't labeled correctly.  Make sure you have the
latest selinux policy and run fixfiles.

-- 
William Hooper


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux