Instructions for installing mysql on mac os x via homebrew (a command line package manager for mac)
Follow installation instructions at https://brew.sh/
Run this at a terminal prompt:
brew install mysql
Run this at a terminal prompt:
mysql.server start
Then run:
mysql_secure_installation
and provide a strong root password. I'd recommend setting the Strong (2) requirement for passwords, and also saying Yes to all of the prompts - remove anonymous users, disallow root login remotely, remove test database, etc.
Run this at a terminal prompt:
mysql.server stop
Run this at a terminal prompt:
mysql.server start
Run this at a terminal prompt:
brew services start mysql