This article explains how to download and install the MySQL database onto macOS Catalina (10.15) and macOS Mojave (10.14).

What to Know

  • Go to MySQL website > Downloads > Community (GPL) Downloads > Community Server > Download.Next, open DMG file > double-click PKG installer > Install/Change Install Location > Install Software.To run MySQL, select Apple logo > System Preferences > MySQL.

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.

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.

How to Install MySQL on macOS

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

The Mac installer doesn’t give you a lot of the extras. If you want documentation, sample databases, or a GUI DB explorer, you need to hunt them down yourself.

  • 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.

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.

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 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.

The MySQL database server runs on port 3306 by default. If you plan on connecting to the database from another machine, you may need to adjust your firewall.

You need to dig into the technical details for MySQL to be of much use to you. Be sure to brush up on the fundamentals of SQL.

Get the Latest Tech News Delivered Every Day