Next, we’re going to install Homebrew (this command is all one line): /usr/bin/ruby -e "$(curl -fsSL )" You will have to press space a bunch of times to scroll to the bottom of the agreement and then type ‘agree’ if you agree to the terms. Let’s get started – the first thing you need to do is open up a terminal window and make sure you’ve accepted the Xcode license agreement by issuing this command: sudo xcodebuild -license If you have installed or attempted to install it before, you will need to make sure MySQL is completely removed along with all of its files and directories.
This allows for easy upgrades, and still includes the ability to have MySQL start on boot. As a result, we now recommend installing and maintaining MySQL using Homebrew. Over the years, it has become difficult to ensure that the script works on all of the versions of macOS still in use, and support from MySQL for macOS is slow. In the past, we maintained a script for automating the installation of MySQL on macOS.