[TriLUG] Need help with MySQL 5 on Centos 4.2

Chad Thomsen chad.thomsen at gmail.com
Tue Jan 24 21:48:14 EST 2006


Paul you rock!!!  You are a life saver!!  Thanks a bunch.  Why would the
connection get broken?  I am assuming the connection I am refering to is the
"master" database where MySQL stores stuff it needs to run.

Thanks again!!

Chad

On 1/23/06, Paul G. Szabady <Paul at thyservice.com> wrote:
>
> Greetings,
>
> You might try running 'restorecon -R -v /var/lib/mysql' (without the
> quotes.)
>
>
> --
> Paul
> @ Thy Service
>
> > On Mon, Jan 23, 2006 at 11:30:31PM -0500, Chad Thomsen wrote:
> >> Jan 23 23:22:38 localhost kernel: audit( 1138076558.900:34):
> avc:  denied
> >>  {
> >> append } for  pid=4265 comm="mysqld"
> >> name="localhost.localdomain.err" dev=dm-0 ino=1769773
> >> scontext=root:system_r:mysqld_t tcontext=root:object_r:var_lib_t
> >> tclass=file
> >> Jan 23 23:22:38 localhost kernel: audit(1138076558.901:35):
> avc:  denied
> >>  {
> >> append } for  pid=4265 comm="mysqld" name="localhost.localdomain.err"
> >> dev=dm-0 ino=1769773 scontext=root:system_r:mysqld_t
> >> tcontext=root:object_r:var_lib_t tclass=file
> >> Jan 23 23:22:38 localhost kernel: audit(1138076558.931:36):
> avc:  denied
> >>  {
> >> write } for  pid=4265 comm="mysqld" name="mysql" dev=dm-0 ino=1769715
> >> scontext=root:system_r:mysqld_t tcontext=root:object_r:var_lib_t
> >> tclass=dir
> >> Jan 23 23:22:39 localhost kernel: audit( 1138076559.032:37):
> avc:  denied
> >>  {
> >> read write } for  pid=4265 comm="mysqld" name="ibdata1" dev=dm-0
> >> ino=1769770
> >> scontext=root:system_r:mysqld_t tcontext=root:object_r:var_lib_t
> >> tclass=file
> >
> > These are SELinux error messages. Quick and dirty fix is to disable
> > SELinux - 'setenforce 0' as root will do it until the system is
> rebooted.
> > Edit /etc/sysconfig/selinux to read 'SELINUX=disabled' to kill it
> > permanently.
> >
> > It's a distinct possibility that mysql5 may require custom selinux
> policy
> > written to function correctly. Or you may be able to tweak it with the
> > available booleans, however I'm not an SELinux expert. :)
> >
> > --
> > David W. Aquilina
> > david at starkindler.us
> > --
> > TriLUG mailing list        :
> http://www.trilug.org/mailman/listinfo/trilug
> > TriLUG Organizational FAQ  : http://trilug.org/faq/
> > TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
> >
>
> --
> TriLUG mailing list        : http://www.trilug.org/mailman/listinfo/trilug
> TriLUG Organizational FAQ  : http://trilug.org/faq/
> TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
>



More information about the TriLUG mailing list