Re: SELinux is furious about different mysql db location

2011-06-10 Thread Hiisi
On 10 June 2011 13:51, Dave Quigley wrote: > On 6/10/2011 5:12 AM, Hiisi wrote: <--SNIP--> > > Instead of doing the individual semanage commands on each file try this > instead. > > semanage fcontext -ae /var/lib/mysql /srv/lib/mysql > restorecon -Rv /srv/lib/mysql > > That should tell selinux tha

Re: SELinux is furious about different mysql db location

2011-06-10 Thread Dave Quigley
On 6/10/2011 5:12 AM, Hiisi wrote: > Hi, list! > I would like to change default location for MySQL databases. So I > copied /var/lib/mysql to /srv/lib/ and changed datadir variable in > /etc/my.cnf from default /var/lib/mysql to /srv/lib/mysql. Since that > I'm unable to start mysqld service. With

SELinux is furious about different mysql db location

2011-06-10 Thread Hiisi
Hi, list! I would like to change default location for MySQL databases. So I copied /var/lib/mysql to /srv/lib/ and changed datadir variable in /etc/my.cnf from default /var/lib/mysql to /srv/lib/mysql. Since that I'm unable to start mysqld service. With every effort I got AVC denial messages sugges