~/.bash_profile Connect to MySQLĪs part of the installation, MySQL service is started after finalising the installation. To use MySQL CLI, run the following command to add it to Bash profile: echo 'export PATH=/usr/local/mysql/bin:$PATH' > ~/.bash_profileĪnd then reload the profile. Click Close button to finish the setup.For example, Click Finish button to finish configurations. For my purpose, I will use the legacy option. Choose 'Use Strong Password Encryption.' or 'Use Legacy Password Encryption.' depends on your scenario.In Installation Type tab, click Install button.And you need to Agree with the licence before you can continue to install. In Licence tab, click Continue button.In the popup window, double click the pkg icon to install the package. In your download folder, you should be able to see the downloaded dmg file:Ĭlick the icon to start installation.You can skip login with Oracle account by click 'No thanks, just start my download' on the bottom of the redirected page. Select operating system as macOS and then download macOS 10.15 (x86, 64-bit), DMG Archive from the list. This article provides details about installing MySQL on macOS. MySQL is one of the most commonly used open source database in the world.