Maison  >  Article  >  base de données  >  MySQL启动和停止的实际操作示例

MySQL启动和停止的实际操作示例

WBOY
WBOYoriginal
2016-06-07 14:52:361070parcourir

以下的文章主要介绍的是MySQL启动和停止的实际操作,相信如果你掌握了MySQL启动和停止的实际操作这项实用性技术的话,会在以后的学习或是工作中带来很大的帮助。以下就是文章的具体内容描述。 1、启动 MySQL安装完成后MySQL启动文件MySQL在/etc/init.d目录下

  以下的文章主要介绍的是MySQL启动和停止的实际操作,相信如果你掌握了MySQL启动和停止的实际操作这项实用性技术的话,会在以后的学习或是工作中带来很大的帮助。以下就是文章的具体内容描述。

  1、启动

  MySQL安装完成后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是否在自动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 

  以上的相关内容就是对MySQL启动与停止的介绍,望你能有所收获。

  mysql启动与停止

Déclaration:
Le contenu de cet article est volontairement contribué par les internautes et les droits d'auteur appartiennent à l'auteur original. Ce site n'assume aucune responsabilité légale correspondante. Si vous trouvez un contenu suspecté de plagiat ou de contrefaçon, veuillez contacter admin@php.cn