In some unusual situation, we need to look into the up-time for MySQL in your server. So here am giving you three ways to check MySQL version along with the up-time of MySQL procedure.
This command is similar to “mysqladmin version”
# mysqladmin ver
If you only want to know the MySQL up-time, then you can use grep command with the above command.
# mysqladmin version | grep -i uptime # mysqladmin ver | grep -i uptime
This command also provide MySQL up-time along with running threads and queries, but this up-time is recorded in seconds: