Table of Contents
What you will read?
MySQL remains one of the most widely used database systems for developers and businesses alike. It’s fast, secure, and integrates easily with macOS — making it a great choice for local development and testing environments. In macOS 2025, there are a few simple methods to install MySQL, including using Homebrew or the official MySQL DMG installer.
Step 1: Update Homebrew
If you use Homebrew, begin by updating your package lists to ensure you’re downloading the latest version:
brew update
Step 2: Install MySQL via Homebrew
You can install MySQL directly from the terminal with:
brew install mysql
Once installed, start the MySQL service:
brew services start mysql
To verify that MySQL is running, check its status:
brew services list
Step 3: Secure the MySQL Installation
Just like on Linux systems, it’s best to secure your MySQL setup. Run:
mysql_secure_installation
Follow the prompts to:
-
Set a root password
-
Remove anonymous users
-
Disallow remote root login
-
Remove test databases
This ensures a safe and stable environment for your data.
Step 4: Log In to MySQL
Once MySQL is up and running, log in using:
mysql -u root -p
Enter your password to access the MySQL shell.
Step 5: Start and Stop MySQL Manually (Optional)
If you prefer manual control, you can start or stop the service anytime with:
mysql.server start
mysql.server stop
Step 6: Verify Installation
Check that MySQL is correctly installed and functioning by running:
mysql --version
You should see output showing the MySQL version (for example, 8.0.xx).
Step 7: Alternative Method — Install via DMG
If you prefer a graphical installer, download the official MySQL package from:
-
Choose macOS as your platform.
-
Download the
.dmginstaller. -
Follow the on-screen setup instructions.
-
After installation, MySQL can be started from System Preferences → MySQL.
MySQL is now installed and configured on macOS 2025. You can use it to build, manage, and test your databases efficiently — whether for local web development or production-level projects. For more Linux, macOS, and server setup tutorials, check out DropVPS and explore more detailed guides on database management and developer tools.
Follow DropVPS on Google
Add DropVPS as a preferred source to see our latest VPS guides and tutorials surfaced first in Google Search and AI Overviews.
Need a Linux Server for This?
Run Debian, Ubuntu, or any Linux distro on DropVPS — fast NVMe SSD, full root access, and 24/7 support. Perfect for everything you just read.
- Full Root Access
- Debian & Ubuntu Ready
- 99.99% Uptime
- 24/7 Support
No commitment · Cancel anytime

