一、linux下查看mysql服务的两种方式:
方式一:
[root@localhost bin]ps -ef|grep mysql
方式二:
[root@localhost bin]netstat -nlp
二、linux下启动mysql服务的两种方式:
命令行方式:
[root@localhost bin]cd /usr/bin
[root@localhost bin]./mysqld_safe &
服务方式:
- 1
[root@localhost ~]service mysql start - 2
如果服务在启动状态,直接重启服务用以下命令: - 3
[root@localhost ~]service mysql restart
三、linux下关闭mysql服务的两种方式:
命令行方式:
[root@localhost ~]mysqladmin -u root shutdown
服务方式:
[root@localhost ~]service mysql stop
转载于:https://blog.youkuaiyun.com/king_1421484363/article/details/73277771
本文详细介绍在Linux环境下,如何通过两种方式查看、启动、关闭MySQL服务,包括命令行操作和使用服务管理命令,为系统管理员提供实用的操作指导。
168

被折叠的 条评论
为什么被折叠?



