Results 11 to 14 of 14
|
|
Enjoy an ad free experience by logging in. Not a member yet? Register.
|
|
-
12-27-2007 #11Just Joined!
- Join Date
- Dec 2007
- Posts
- 2
Hello All
Sorry to re-visit a post that is over a year old, but is this the answer then?
I'm still finding my way around Linux and had the same problem as the original poster, CanMike. What seems odd to me is that the thing works fine for /var/lib/mysql but not for a folder of my choosing. Like CanMike mine worked fine once I changed /etc/my.cnf back to the original settings.
Maybe its just me but 'Disable SELinux protection' seems a bit extreme as a way to fix what is likely to be a very common problem
-
12-27-2007 #12Just Joined!
- Join Date
- Feb 2007
- Posts
- 2
You just need to relabel the storage area. This is what i did on my Fedora Core 7:
Just substitute the dir containing your datafile in the first command.Code:chcon -R -u system_u -r object_r -t mysqld_db_t /home/mysqldb chcon -R -u system_u -r object_r -t mysqld_db_t /var/lib/mysql/ chcon -u system_u -r object_r -t mysqld_etc_t /etc/my.cnf
I still have problems with httpd (with httpd_sys_content_t) trying to access /etc/my.cnf, but i can live with it.
-
12-28-2007 #13Just Joined!
- Join Date
- Dec 2007
- Posts
- 2
Thanks spremi
I'll try that.
-
11-15-2009 #14Just Joined!
- Join Date
- Nov 2009
- Posts
- 1
I had this same problem in Ubuntu 8.04. Problem was caused by AppArmor preventing access to new file location. I purged AppArmor from system but you could alter profile for mySQL.



