republican-creole
Search:  

 
 
   All ForumsHot TopicsGallery






how-to block ads


 
Forums » Tech and Talk » OS and Software » All Things Unix » Fedora Core 3 mysql fails to start
Search Topic:
Uniqs:
2833
Share Topic:
RSS topic:
toggle:
flat / full
normal / watch
Posting:
Post a:
Post a:
[FYI]Gimp 2.2 »
« DOS equivalent of the unix "&"  
AuthorAll Replies

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 don’t 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.
Forums » Tech and Talk » OS and Software » All Things Unix[FYI]Gimp 2.2 »
« DOS equivalent of the unix "&"  


Friday, 30-Jul 21:34:34 Terms of Use | Privacy Policy | Hosting by www.nac.net - DSL,Hosting & Co-lo | feedback | contact
over 11 years online! © 1999-2010 dslreports.com.
page compression OFF
Most commented news this week
· [172] PC Mag: Apple's Droid X 'Death Grip' Claim 'Bogus'
· [154] Frontier Union Workers Complain About Mandatory Overtime
· [137] Ads For Comcast 100 Mbps Tier Surface
· [116] White House Pushes For Warrantless Access To ISP Records
· [107] Library Of Congress Says You Can Jailbreak Your Phone
· [84] Carriers Sue San Fran To Kill Radiation Law
· [63] Pay Us $0.00 Or We'll Cancel Your Broadband
· [49] Verizon Smartphone Users Consume The Most Data
· [49] Sprint Finally Sees Some Subscriber Growth
· [49] AT&T 3G Will Power The New Nissan LEAF
Most people now reading
· "I didn't get a bill, " is no excuse! [Rants, Raves, and Praise]
· FiOS Speed Increases [Verizon Fiber Optics]
· Locked bathroom door [Home Improvement]
· R.I.P. Ninjavideo.net [Canadian Chat]
· 3.x Feral Druid - Bear Tanking Guide [World of Warcraft]
· [Scam] Cruise line mail? [Spam, Scam and Phishbusters]
· [ Classes] Hunter: 3.3.3 Raiding BM [World of Warcraft]
· virus/spyware: divxturka.net [Security]
· Ashen Verdict Rep farming guide (ICC 10) [World of Warcraft]