This procedure explains how to install MySQL and MySQL Workbench using Homebrew on macOS. This is a fork of these instructions, to make them more concise and solve the issues reported here.
To install MySQL enter :
brew install mysqlbrew services start mysql- then run
mysql_secure_installationand follow the instructions