Announcement

Collapse
No announcement yet.

How to find mysql service uptime from commandline?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to find mysql service uptime from commandline?

    Hello,
    How to check the MySQL service uptime by using the commandline?

  • #2
    Hello,
    You can check the mysql uptime by using the following command.

    mysqladmin version | grep Uptime
    That will show you the mysql uptime in the result as follows

    [email protected] [~]# mysqladmin version | grep Uptime

    Uptime: 25 days 2 hours 34 min 28 sec
    According to above result the mysql uptime is 25 days 2 hours 34 min 28 sec.

    Comment


    • #3
      # mysqladmin ver command is similar to “mysqladmin version”

      Example:
      # mysqladmin ver | grep -i uptime

      Uptime: 25 days 2 hours 34 min 28 sec

      Comment

      Working...
      X