How make mysql start automatically ? (linux-cli only)

前端 未结 9 1617
没有蜡笔的小新
没有蜡笔的小新 2020-12-23 12:43

How can i make mysql start every time the system boot ? I need that in a dedicated server(ubuntu distro) in which i have my blog, but every time the server goes down, on boo

9条回答
  •  醉话见心
    2020-12-23 13:35

    update-rc.d allows setting init script links on Ubuntu and Debian Linux systems to control what services are run by init when entering various runlevels. It should be able to add mysql to the list of services to run at boot:

    sudo update-rc.d mysql defaults
    

    If you later want to disable running mysql on bootup:

    sudo update-rc.d mysql remove
    

提交回复
热议问题