Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question
    
How did you install it? like.. from apt? or from any other source. –  venomrld Sep 16 '11 at 16:56
    
From the repositories (apt) –  lisa17 Sep 16 '11 at 17:56
    
Then check out the command services --status-all. Does it show the mysql service? Probably you have already done that.. Still to confirm –  venomrld Sep 16 '11 at 18:02
add comment

1 Answer 1

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 [2345])
stop on runlevel [016]

You can safely remove the net-device-up directive.

start on (local-filesystems
         and runlevel [2345])
stop on runlevel [016]

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.