一、linux下查看mysql服务的两种方式:
方式一:
[root@localhost bin]ps -ef|grep mysql1
方式二:
[root@localhost bin]netstat -nlp1
二、linux下启动mysql服务的两种方式:
命令行方式:
[root@localhost bin]cd /usr/bin [root@localhost bin]./mysqld_safe &12
服务方式:
[root@localhost ~]service mysql start 如果服务在启动状态,直接重启服务用以下命令: [root@localhost ~]service mysql restart123
三、linux下关闭mysql服务的两种方式:
命令行方式:
[root@localhost ~]mysqladmin -u root shutdown1
服务方式:
[root@localhost ~]service mysql stop
总结
以上就是
为各位朋友分享的 相关内容。想要了解更多Linux相关知识记得关注公众号“良许Linux”,或扫描下方二维码进行关注,更多 等着你!