service mysql start hangs forever without any messages if the configuration is broken
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mysql-5.1 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I had a typo in the configuration file, and when doing service mysql restart, the command hanged forever, without any messages at all. I guess is related to be moved to upstart and the respawn option, in combination with no printing any error messages at all.
To debug the problem I had to run mysqld manually to get the errors in the console, I didn't even saw any errors in /var/log/mysql.err. Just now I realized there is another log file in /var/log/
Anyway, I think the init script shouldn't try to restart the program if it failed too soon, and probably should print startup errors in the console. A simple solution might be to just remove the respawn option for now.
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: mysql-server 5.1.58-1ubuntu1
ProcVersionSign
Uname: Linux 3.0.0-16-generic x86_64
ApportVersion: 1.23-0ubuntu4
Architecture: amd64
Date: Tue Feb 14 13:07:31 2012
PackageArchitec
SourcePackage: mysql-5.1
UpgradeStatus: Upgraded to oneiric on 2011-10-20 (117 days ago)
Hi luca. Thanks for taking the time to file this bug and help us make Ubuntu better.
I'm sorry that you experienced this, I can imagine how frustrating it is.
This is a duplicate of bug #711635 , which I believe I have a fix for here:
http:// bazaar. launchpad. net/~ubuntu- branches/ ubuntu/ precise/ mysql-5. 5/precise/ revision/ 16
That is for the mysql-5.5 branch, but the patch *should* apply to 5.1 as well if you change the files to mysql-server-5.1.
Marking duplicate, please comment there unless you feel this is not actually a duplicate.