zoukankan      html  css  js  c++  java
  • 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
  • 相关阅读:
    .net中Timer的使用
    计算日期的神器
    求全排列函数next_permutation
    各种排序
    求最大字段和
    炸弹时间复位
    最少步数,广搜
    数据
    水池数目
    最大岛屿
  • 原文地址:https://www.cnblogs.com/qianjinyan/p/12298641.html
Copyright © 2011-2022 走看看