How to Download MySQL for macOS

The MySQL download for macOS Catalina is compatible with macOS Mojave. Here’s how to find and download MySQL for macOS.

Go to the MySQL website and select the Downloads option at the top of the screen. Scroll down to the bottom of the Downloads screens and select MySQL Community (GPL) Downloads. Select MySQL Community Server. Select macOS in the Select Operating System menu. Select Download to the right of macOS 10. 15 (x86, 64-bit), DMG Archive. You see buttons to either log in to your Oracle Web account or sign up for a new one. Select No thanks, just start my download.

Once your download is finished, you’re ready to start the installation.

How to Install MySQL on macOS

The DMG archive for MySQL contains a friendly wizard-style installer. To install MySQL, take the following steps:

Double-click the DMG file to open it. Double-click the PKG installer. The installer initially lets you know it will check for prerequisites. Click Continue to start. The first step of the install contains links to MySQL-related information, such as the documentation. Click Continue. Accept the software’s license, which is the GNU Greater Public License, or GPL. MySQL is open source software. Click Continue to move on. By default, your Mac’s main hard drive is the download destination. Click Install to proceed. (If you have other drives and want to change from the main hard drive, click Change Install Location first to place the software elsewhere. ) Enter your password and click Install Software. Wait while the files copy to your Mac. In the Configure MySQL server screen, click Use Strong Password Encryption. Click Next. You are prompted for a MySQL root password. The root user is the superuser of the MySQL subsystem. Click Finish when you’re done.

The last screen displays a summary and links. The installation is complete.

How to Run MySQL on macOS

Your first instinct to run MySQL after installation might be to open the Applications menu, but MySQL is a server application, so you won’t find it there.

Click the Apple logo in the top left corner of the screen and click System Preferences. Click MySQL to launch it. From here, there are various things you can do: Click the Start MySQL Server button to start and stop the server. Choose whether you want the server to run automatically at startup. Click Initialize Database to reconfigure the default database. Uninstall MySQL. Click the Configuration tab to set advanced options, including data directories, the location of the error log, or a custom configuration file, if you have one. Click Apply after making any changes.

You’re done.

Click the Start MySQL Server button to start and stop the server. Choose whether you want the server to run automatically at startup. Click Initialize Database to reconfigure the default database. Uninstall MySQL.