mysql启动与停止

1、启动
  MySQL安装完成后启动文件mysql在/etc/init.d目录下,在需要启动时运行下面命令即可。
  [root@test1 init.d]# /etc/init.d/mysql start

2、停止
  /usr/bin/mysqladmin -u root -p shutdown

3、自动启动
  1)察看mysql是否在自动启动列表中
  [root@test1 local]# /sbin/chkconfig --list
  2)把MySQL添加到你系统的启动服务组里面去
  [root@test1 local]# /sbin/chkconfig --add mysql
  3)把MySQL从启动服务组里面删除。
  [root@test1 local]# /sbin/chkconfig --del mysql
原文地址:https://www.cnblogs.com/rooney/p/1651028.html