Sponsored By: Password Angel - Share passwords, API keys, credentials and more with secure, single-use links.

HowTo: Check how long a MySQL server has been running

How long has the MySQL instance been running?


When was the MySQL last started?

SELECT FROM_UNIXTIME(UNIX_TIMESTAMP() - variable_value) AS last_started
FROM performance_schema.global_status 
WHERE variable_name='Uptime';

Originally published at

Subscribe to my newsletter...

... and receive the musings of an aspiring #indiehacker directly to your inbox once a month.

These musings will encompass a range of subjects such as Web Development, DevOps, Startups, Bootstrapping, #buildinpublic, SEO, personal opinions, and experiences.

I won't send you spam and you can unsubscribe at any time.