DEV Community

Paul Lefebvre
Paul Lefebvre

Posted on

1

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)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay