mysql
Install mysql with homebrew:
brew install mysqlTo start mysql now and restart at login:
brew services start mysqlTo start mysql server manually:
mysql.server startBy default, homebrew installs MySQL database without a root password. To secure it run:
mysql_secure_installationThe MySQL installed via homebrew is configured to only allow connections from localhost by default.
To connect run:
mysql -u root