查看mysql启动时间吗|查看MySQL启动时间以及运行了多长时间

更新时间:2019-02-14    来源:linux    手机版     字体:

【www.bbyears.com--linux】

一,uptime 可以查看系统的运行时间

show global status like "uptime";

二,利用linux命令查看

[root@dbserver ~]# ps aux | grep mysql
root     29090  0.0  0.0  70232  1364 ?        S    Jun05   0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/data/mysql --pid-file=/data/mysql/dbserver.pid

看到了吧, Jun05 就表示这个服务是在6月5日启动的

三,利用phpmyadmin的状态中可以看如下信息

www.111cn.net这台 MySQL 服务器已经运行了 0 天 6 小时,30 分 16 秒,启动时间为 2014 年 01 月 02 日 08:39。

本文来源:http://www.bbyears.com/caozuoxitong/48004.html