zoukankan      html  css  js  c++  java
  • ubuntu16.04开机启动mysql

    ubuntu16.04开机启动mysql:

    1、执行sysv-rc-conf --level 2345 mysql on,如果提示没有sysv-rc-conf命令,先下载

      下载命令:sudo apt-get install sysv-rc-conf

    2、查看服务列表sysv-rc-conf --list mysql,如果看到2345都是on,则设置成功

    root@192:/home/bigdata# sysv-rc-conf --list mysql
    mysql 0:off 1:off 2:on 3:on 4:on 5:on 6:off

    3、重启reboot,检验msyql是否已经重启,ps -ef|grep mysql,如出现下图,说明重启成功

    root@192:/home/bigdata# ps -ef|grep mysql
    mysql 24747 1 0 10月18 ? 00:01:18 /usr/sbin/mysqld
    root 24858 20869 0 10月18 pts/8 00:00:00 sudo mysql_secure_installation
    root 24859 24858 0 10月18 pts/8 00:00:00 mysql_secure_installation
    root 54018 20869 0 10:47 pts/8 00:00:00 vi /etc/mysql/my.cnf
    root 54123 54102 0 10:49 pts/9 00:00:00 grep --color=auto mysql


     

  • 相关阅读:
    @atcoder
    @loj
    @atcoder
    @gym
    @codeforces
    @atcoder
    @bzoj
    @loj
    Kafka常用命令
    Kafka入门介绍
  • 原文地址:https://www.cnblogs.com/testing-BH/p/11712145.html
Copyright © 2011-2022 走看看