Skip navigation links

MySQL Forums :: Install :: How Do I Install MySQL 5 RPM on Fedora 4?


Advanced Search

Permissions and SELinux
Posted by: Simon Nicholls ()
Date: September 29, 2005 08:13AM

Check console and logs for permission problems. Upon installing 5.0.13 on Fedora Core 3, I got

[Warning] Can't create test file /var/lib/mysql/mysql.lower-test

The directory permissions were ok in my case (but worth checking) - it was SELinux causing me issues:

mysql kernel: audit(1128001497.156:0): avc: denied { create } for pid=31567 exe=/usr/sbin/mysqld name=mysql.sock scontext=root:system_r:mysqld_t tcontext=root:object_r:var_lib_t tclass=sock_file

I tested the install by temporarily setting "setenforce 0", and everything was fine. By running:

restorecon -R -v /var/lib/mysql

The security context was fixed up, and all seems good to go

Cheers

edit: Found this link http://bugs.mysql.com/bug.php?id=12676



Edited 2 time(s). Last edit at 09/29/2005 08:33AM by Simon Nicholls.

Options: ReplyQuote


Subject Written By Posted
How Do I Install MySQL 5 RPM on Fedora 4? Joel Sta Mesa 08/15/2005 12:26AM
Re: How Do I Install MySQL 5 RPM on Fedora 4? Shajid 08/19/2005 08:41AM
Permissions and SELinux Simon Nicholls 09/29/2005 08:13AM
Re: How Do I Install MySQL 5 RPM on Fedora 4? xiaohua ren 02/05/2009 07:21AM


Sorry, you can't reply to this topic. It has been closed.