How to check if MySQL is installed on Mac
Robert Cooper
Robert Cooper Senior Engineer at Basedash
· January 31, 2025
Robert Cooper
Robert Cooper Senior Engineer at Basedash
· January 31, 2025
MySQL is a popular open-source relational database management system. If you want to check if MySQL is installed on your Mac, follow the steps outlined in this guide.
The simplest way to see if MySQL is installed is to try running the mysql command.
mysql --version
If MySQL is installed, this command will display the version of MySQL that’s installed. Otherwise, you’ll see a message indicating that mysql is not found.
Another way to check for MySQL is to see if its service is running.
sudo launchctl list | grep mysql
If MySQL is installed and running as a service, you’ll see a line that includes the name “mysql”. If not, no results will be returned.
MySQL often installs a preferences pane in System Preferences.
The default installation directory for MySQL on a Mac is /usr/local/mysql.
ls /usr/local/mysql
If you see a list of files and directories related to MySQL, it’s a good sign that MySQL is installed. If not, you’ll see an error indicating the directory doesn’t exist.
If you have installed MySQL using Homebrew, you can also check its existence using:
brew list | grep mysql
If MySQL has been installed via Homebrew, this command will return “mysql”.
It’s always good to be aware of what software is running on your machine, especially when it comes to databases that might be holding sensitive data. If you have MySQL installed but aren’t using it, consider either securing it or uninstalling it to reduce potential vulnerabilities. If you’re actively using MySQL, ensure you’re following best security practices and keeping your software up-to-date.
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.