Steps to check uptime of MySQL service:
[1] Login to the server via SSH (for Linux) or MySQL server through command line (for windows).
[2] Type the command mysql
Now, you will be able see the mysql prompt (mysql>). From here, you can manage the MySQL services as well databases.
[3] To check the uptime of the MySQL service shoot out the command
\s
Thanks,