LINUX重启MYSQL方式

[root@localhost ~]service mysqld start //启动mysql

[root@localhost ~]/etc/inint.d/mysqld start //启动mysql

[root@localhost ~]service mysqld stop //停止mysql

[root@localhost ~]/etc/inint.d/mysqld stop //停止mysql

[root@localhost ~]service mysqld restart //重启mysql

[root@localhost ~]/etc/inint.d/mysqld restart //重启mysql

查看mysql是否启动

[root@localhost ~]/etc/init.d/mysqld status //查看mysql是否成功运行

mysql运行状态检测

[root@localhost ~]ps aux|grep mysqld //查看是否有mysqld进程运行
[root@localhost ~]ps -ef|grep mysqld //查看是否有mysqld进程运行