一、查看mysql服务状态
1、命令
service mysqld status
2、运行结果
[root@hidata3 ~]# [root@hidata3 ~]# service mysqld status mysqld (pid 23057) is running... [root@hidata3 ~]#
二、mysql重启命令
service mysqld restart
service mysqld status
[root@hidata3 ~]# [root@hidata3 ~]# service mysqld status mysqld (pid 23057) is running... [root@hidata3 ~]#
service mysqld restart