How to check MySQL version on Mac
Robert Cooper
Robert Cooper Senior Engineer at Basedash
· January 31, 2025
Robert Cooper
Robert Cooper Senior Engineer at Basedash
· January 31, 2025
Being familiar with the exact version of MySQL running on your system is crucial. It can inform decisions related to compatibility, feature availability, security patches, and more. Here’s a straightforward guide for Mac users to determine their MySQL version.
If MySQL is already running on your Mac, you can simply query the version directly.
Open your Terminal.
Enter the MySQL console:
mysql -u root -p
Note: You might need to replace root with your MySQL username. The -p flag prompts you for your password.
Once you’re in the MySQL console, run the following command:
SELECT VERSION();
The output will show the version of MySQL you’re currently using.
If you don’t want to start MySQL or log into the console, you can still get the version:
In your Terminal, run:
mysql --version
This command returns information about the MySQL client. The version of the client usually matches that of the server, but do note that it’s possible for them to be different if, for example, you’ve upgraded the client without upgrading the server.
If you’ve installed MySQL using the official MySQL package for macOS, you can check the version through the MySQL pane in System Preferences.
If you’re using MySQL Workbench, an official graphical tool from Oracle, to manage your MySQL databases:
It’s always a good idea to know which version of MySQL you’re running, especially when planning upgrades or troubleshooting issues. Whether you prefer the terminal, system settings, or a GUI-based approach with MySQL Workbench, macOS offers multiple ways to quickly ascertain this information.
Written by
Senior Engineer at Basedash
Robert Cooper is a senior engineer at Basedash who builds full-stack product systems across SQL data infrastructure, APIs, and frontend architecture. His work focuses on application performance, developer velocity, and reliable self-hosted workflows that make data operations easier for teams at scale.
Basedash lets you build charts, dashboards, and reports in seconds using all your data.