MySQL set up a fault resolution for self-booting in Ubuntu

Source: Internet
Author: User

MySQL set up a fault resolution for self-booting in Ubuntu

Chszs, reprint need to indicate. Blog home:Http://blog.csdn.net/chszs

In resolving MySQL self-booting, execute the command:

# chkconfig--listthe Program ' Chkconfig ' was currently not installed.  You can install it by Typing:apt-get install Chkconfig

Find that the Chkconfig script is not installed, install it:
[Email protected]:~# apt-get Install chkconfigreading package lists ... Done ...


Post-Installation execution:

# chkconfig--list | grep mysqlmysql                     0:off  1:off  2:off  3:off  4:off  5:off  6:off

Visible MySQL is not self-booting service.

Use Chkconfig to make MySQL self-booting, execute command error:

# chkconfig-a Mysql/sbin/insserv:no such file or Directorymysql                     0:off 1:off 2:off  3:off  4:off< C12/>5:off  6:off

The solutions available online are:

# ln-s/usr/lib/insserv/insserv/sbin/insserv

Execute command, continue error

# chkconfig MySQL onthe script you be attempting to invoke have been converted to a upstartjob, but Lsb-header was not sup Ported for upstart Jobs.insserv:warning:script ' MySQL ' missing LSB tags and overridesinsserv:default-start undefined, a ssuming empty start RunLevel (s) for script ' MySQL ' ...

Continue to find the cause, found to be:

The Chkconfig command is for the Redhat/fedora release, and for Debian distributions like Ubuntu, you should use this command:

sudo update-rc.d mysql defaults

Verify that:

# chkconfig--list | grep mysqlmysql                     0:off  1:off  2:on   3:on   4:on   5:on   6:off

It's done!

Finally, remember to delete the previously established symbolic connection.

# rm-f/sbin/insserv


MySQL set up a fault resolution for self-booting in Ubuntu

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.