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

前端 未结 9 1638
没有蜡笔的小新
没有蜡笔的小新 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:28

    I had the same problem, so I checked how I disabled it in the first place:

    https://askubuntu.com/questions/138487/how-to-keep-apache-and-mysql-from-starting-automatically

    Check your /etc/init/mysql.conf to make sure you don't have start on commented out (like I did).

    # MySQL Service
    
    description     "MySQL Server"
    
    author          "Mario Limonciello "
    
    start on runlevel [2345]
    stop on starting rc RUNLEVEL=[016]
    ...
    

    Rebooted the machine and it works.

    $ sudo service mysql status
    mysql start/running, process 972
    

提交回复
热议问题