I'm running a ubuntu 10.04 box. I want to enable Mysql on startup. Typically, I used the following command:
#update-rc.d mysql defaults
Mysql still doesn't start when system boots. Suggestions?
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
Ubuntu 10.04 uses Upstart to control the behaviour of startup services. You can find the conf scripts at /etc/init (e. g. mysql.conf).
The MySQL script requires a net-device-up and this can cause some trouble. Check this part of the script:
start on (net-device-up and local-filesystems and runlevel ) stop on runlevel 
You can safely remove the net-device-up directive.
start on (local-filesystems and runlevel ) stop on runlevel 
Now, the script only depends on runlevel and mounted partitions/fs. If after that the problem still persists, you should look for lock/permission problem in your log files.