Red Hat Bugzilla – Bug 137438
MySQL server timeout error on startup
Last modified: 2013-07-02 23:02:27 EDT
Description of problem:
I installed the latest 'mysql-server' package, now when I try to start
the database server, I got the following error message:
Timeout error occurred trying to start MySQL Daemon.
Starting MySQL: [FAILED]
The MySQL server starts up and works fine anyway.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. up2date mysql-server
2. service mysqld stop
3. service mysqld start
Expected Results: Since the MySQL server starts up and works fine,
there should be no error message on screen.
Have you perhaps disabled anonymous users in MySQL? If so, this is
expected behavior --- see the /etc/rc.d/init.d/mysqld script. You can
tweak the script to use a valid username if you like. I don't really
know of any better way to make the script test for server ready :-(
*** Bug 137573 has been marked as a duplicate of this bug. ***
Modifying the /etc/rc.d/init.d/mysqld does not seem to be an
acceptable solution. Doing that requires that either
a) I have a user who is allowed access without a password
b) I type the clear-text password for the user directly into the rc
I'd prefer to do neither. The old startup script seemed to work fine...
The best solution I can think of is to create a user who has no
permissions to actually do anything; then whether you give it a
password or not hardly matters ...
It may be that MySQL 4.x has a better way to probe for
is-the-server-up-yet than this, but I don't know of one in 3.x.
I'm planning to adopt the solution shown in bug #142328.
*** This bug has been marked as a duplicate of 142328 ***
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.