1、通过yum安装包直接安装的
service mysqld restart
2、通过源码安装的
关闭MySQL的命令
<you mysql_dir>/bin/mysqladmin -uroot -p shutdown
启动MySQL的命令
<you mysql_dir>/bin/mysqld_safe &
3、强制关闭
通过强行命令:killall mysqld
来关闭MySQL
service mysqld restart
关闭MySQL的命令
<you mysql_dir>/bin/mysqladmin -uroot -p shutdown
启动MySQL的命令
<you mysql_dir>/bin/mysqld_safe &
通过强行命令:killall mysqld
来关闭MySQL