Installing MySQL on macOS
The official MySQL installer is the straightforward option when you want a local server on macOS and do not need a package manager. This is the process for the disk-image installer available when this article was written.
Installation
- Go to the MySQL website and download the disk image (.dmg).
- Double-click the file to mount the disk image and see its contents.
- Double-click the MySQL installer package from the disk. It is named according to the version of MySQL you have downloaded.
- The initial wizard introduction screen references the MySQL server version to install. Click
Continueto begin the installation. - On the
Installation Typepage, use the defaults or clickCustomizeto choose between MySQL Server, the preference pane, and launchd support. All three are enabled by default. - Click
Installto begin the installation process. - Enter your password and click
Install Software. - Wait while the files copy to your Mac.
- Confirm that the
Summarypage reports a successful installation.
The server is installed but may not be running yet. You can start it with launchctl or use the MySQL preference pane.
Launch MySQL server
- Open
System Preferences. - Select MySQL.
- Use
Start MySQL Serverto start it. The same control stops it later. - Click the
Configurationtab to set advanced options. - Click
Apply.
The preference-pane location may differ on newer macOS versions, which replaced System Preferences with System Settings. The installer and screen labels here describe the 2020 version.
Filed under Tools on
Last updated on