Red Hat Bugzilla – Bug 114982
Request FC-devel mysql's init.d bugfix to be made available for FC1
Last modified: 2013-07-02 23:00:26 EDT
Description of problem:
In mysql-server shipped with FC1 there is a bug in the
/etc/init.d/mysqld that will cause starting mysqld to result in a
timeout error, even though the service has actually been started
This is fixed in FC-devel/rawhide but the fix was never published as
an update to FC1.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Install mysql-server
2. /sbin/service mysqld start
Time-out error; starting MySQL 'failed'
Starting MySQL should result in a green 'PASS' report
That happens to me too, after an upgrade from RHL73. The problem is
that the rc scripts tries to contact the daemon by issuing an
/usr/bin/mysqladmin ping command, (wrongly) assuming that the daemon
is not running in case of repeated failures. In my case, the failure
is due to the fact I protected the 'root' MySQL account with a
password (which seemed to me a pretty logical action to take). One way
to fix it is to add a --password='xxxxxx' option to mysqladmin in
/etc/rc.d/init.d/mysqld, but this leads to obvious security issues. A
better approach is to change the rc script not to use 'mysqladmin
ping' at all. The best approach (IMHO) involves patching mysql to
allow non authenticated pings, or using a different user (maybe a
dummy one) to perform the ping.
*** Bug 119042 has been marked as a duplicate of this bug. ***
It seems unlikely that we'd roll mysql in fc1 just for this, but I'll
keep the bug open as a reminder in case there's another reason to do
*** Bug 120491 has been marked as a duplicate of this bug. ***
Since FC1 is not being maintained anymore by Red Hat, I'm going to
close out this bug entry.