linux(centos7) mysql5.7.32 启动、重启、停止、查看服务状态 作者:马育民 • 2021-10-21 23:17 • 阅读:10069 # 启动 用 `mysql-5.7.32/support-files/mysql.server` 命令 ``` service mysql start ``` 执行命令如下: ``` Starting MySQL.Logging to '/devtools/mysql-5.7.32/data/hadoop1.err'. SUCCESS! ``` ### 查看 mysql 服务状态 ``` service mysql status ``` ### 查看mysql监听状态 ``` netstat -na | grep 3306 ``` # 重新启动 用 `mysql-5.7.32/support-files/mysql.server` 命令 ``` service mysql restart ``` 执行命令如下: ``` Starting MySQL.Logging to '/devtools/mysql-5.7.32/data/hadoop1.err'. SUCCESS! ``` # 停止 ``` service mysql stop ``` 显示如下: ``` Shutting down MySQL.. SUCCESS! ``` 原文出处:http://malaoshi.top/show_1IX25H3hf2mz.html