Home > Database > Mysql Tutorial > body text

启动、停止、重启MySQL常见的操作方法_MySQL

WBOY
Release: 2016-06-01 13:32:08
Original
1094 people have browsed it

bitsCN.com

启动、停止、重启MySQL常见的操作方法

 

一、启动方式

 

1、使用 service 启动:service mysqld start2、使用 mysqld 脚本启动:/etc/inint.d/mysqld start3、使用 mysqld_safe 启动:mysqld_safe &
Copy after login

二、停止

1、使用 service 启动:service mysqld stop2、使用 mysqld 脚本启动:/etc/inint.d/mysqld stop3、mysqladmin shutdown
Copy after login

三、重启

1、使用 service 启动:service mysqld restart2、使用 mysqld  脚本启动:/etc/inint.d/mysqld restart
Copy after login

 

 

官方推荐使用mysqld_safe,使用mysqld_safe启动,会监控mysql进程,如果mysql进程关闭,自动重启mysql进程。

bitsCN.com
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template