 sundaram123 Asking
join:2004-05-13 Columbus, OH
| Fedora Core 3 mysql fails to start
Hi all,
I was not able to start MySQL database on Fedora core 3. After googleing I found following bug report.
»https://bugzilla.redhat.com/bugzilla/sho···d=141062
They suggest disabling selinux, I dont want to disable selinux. Also I was not able install this patch.
Any help to start mysql with selinux on Fedora core 3.
Thanks -- Sundaram Ramasamy Unix Administrator SCSecA,SCNA,SCSA,SCWCD,SCJP Software Groups |
|
  JohnInSJ Premium join:2003-09-22 San Jose, CA
·Comcast
| per your own link to the bugreport there are two work arounds 1) disable selinux for the one moment when you first start mysql, so it can create the database files. After that, it will work fine with selinux enabled:
quote: Ok. for the mere mortals around here that just has the problem with mysqld not starting. This works on my vanilla FC3 default install system with all updates installed as of 041216:
1. Remove the database with # rm -rf /var/lib/mysql 2. Temporarily disable selinux with # /usr/sbin/setenforce 0 3. Initialize and start mysql with # /etc/init.d/mysqld start 4. Enable selinux again with # /usr/sbin/setenforce 1
Good luck with the package update!
Or, 2) edit the startup script for mysql (probably /etc/init.d/mysql ) quote: In the startup script for mysql this is called :
# If you've removed anonymous users, this line must be changed to # use a user that is allowed to ping mysqld. ping="/usr/bin/mysqladmin -uUNKNOWN_MYSQL_USER ping" # Spin for a maximum of ten seconds waiting for the server to come up
UNKNOWN_MYSQL_USER is not set and then the script will fail. (It will not fail with "/usr/sbin/setenforce 0"). But just changing UNKNOWN_MYSQL_USE to a user that is allowed to ping will also work!
|
|
  mayol
@sea1-4-5-076-188.sea
| Hello!
The first solution didnt work for me. (setenforce 0 worked fine. getenforce says "permissive")
Any guesses? What shall I look for? Symptoms are the same as before..
Jan 6 01:23:27 localhost kernel: audit(1105003407.183:0): avc: denied { append } for pid=12380 exe=/usr/sbin/mysqld path=/var/lib/mysql/localhost.localdomain.err dev=sda1 ino=3450322 scontext=root:system_r:mysqld_t tcontext=root:object_r:var_lib_t tclass=file
I haven't tried 2nd one yet and really would like to stick to first one.
Thanks. |
|
  Mayol
@sea1-4-5-076-188.sea | My bad.. it worked! I simply did 'setenforce 1' before starting mysqld... it happens 
So thanks a lot  |
|
  Bul_dozer
@nerim.net
| reply to sundaram123 Hi sundaram123,
You should try this:
From Startmenu select "System settings" Then choose "Security settings or security level" A window appears with 2 tabs : "Firewall options" and "SELinux" Choose SELinux. At the bottom half of the window you have a lisbox, listing (at least on my PC)
Apache Name Service NIS SELinux Service Protection
Open SELinux Service Protection Select "Disable SELinux protection for mysqld daemon" Click "OK" you had to reboot to make it work
Bye. |
|