Computers, Laptops & Tablets Apple How to Install MySQL on macOS Run your own database on your Mac by Aaron Peters Writer Aaron Peters is a writer with Lifewire who has 20+ years experience in technology. His work appears in Linux Journal, MakeUseOf, and others. our editorial process Twitter LinkedIn Aaron Peters Updated on July 22, 2020 Apple Macs iPad Tweet Share Email Installing the MySQL database on macOS is much like installing it on Windows 10. You're likely doing it for the same reasons, which include self-learning, maintaining your structured data on your own machine, or learning various types of programming. With that said, here's how to install MySQL on macOS Catalina or macOS Mojave. Instructions in this article apply to macOS Catalina (10.15) and macOS Mojave (10.14). 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. 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. 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. 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.