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