Home  >  Article  >  Database  >  MySQL启动和停止的实际操作示例

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

WBOY
WBOYOriginal
2016-06-07 14:52:361068browse

以下的文章主要介绍的是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启动与停止

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn