linux系统查看mysql启动


一、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 &

服务方式:

  • [root@localhost ~]service mysql start
  • 如果服务在启动状态,直接重启服务用以下命令:
  • [root@localhost ~]service mysql restart

三、linux下关闭mysql服务的两种方式:

命令行方式:

[root@localhost ~]mysqladmin -u root shutdown

服务方式:

[root@localhost ~]service mysql stop


转载于:https://blog.csdn.net/king_1421484363/article/details/73277771


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM