linux下查看mysql服务的两种方式:
  方式一:
 
  [root@localhost bin]ps -ef|grep mysql
  方式二:
 
  [root@localhost bin]netstat -nlp
  linux下关闭停止mysql服务的两种方式:
  命令行方式:
 
  [root@localhost ~]mysqladmin -u root shutdown
  服务方式:
 
  [root@localhost ~]service mysql stop
  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服务”这篇文章的内容,相信大家都有了一定的了解,希望小编分享的内容对大家有帮助。

dawei

【声明】:站长网内容转载自互联网,其相关言论仅代表作者个人观点绝非权威,不代表本站立场。如您发现内容存在版权问题,请提交相关链接至邮箱:bqsm@foxmail.com,我们将及时予以处理。