View MySQL startup time and running time

Source: Internet
Author: User

You can use show and updtime or directly use grep MySQL-related parameters in linux to check the mysql startup time and duration. Let's take a look.

1. uptime can be used to view the system running time

Show global status like 'uptime ';

2. Use linux commands to view

[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

As you can see, Jun05 indicates that this service was launched on July 5, June 5.

3. You can view the following information in the phpmyadmin status:

Www. bKjia. c0m the MySQL server has been running for 0 days, 6 hours, 30 minutes, 16 seconds, and the start time is January 02, 2014.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.