DEV Community

Paul Lefebvre
Paul Lefebvre

Posted on

Quick Tip: Get MySQL version

I needed to get the version of a PostgreSQL server the other day and figured I should also look up how to do that with MySQL as I also use that DB from time to time.

It turns out you can easily get this information with a quick database query, similar to the one used for PostgreSQL:

SELECT VERSION();
Enter fullscreen mode Exit fullscreen mode

I hope this helps someone.

Top comments (0)