install mysql
bash
brew install mysql
start mysql server
bash
mysql.server start
stop mysql server
bash
mysql.server stop
enable auto launch as service
bash
brew services start mysql
disable auto launch
bash
brew services stop mysql
configure mysql
you can set root password in this step
bash
mysql_secure_installation
connect mysql
test connection by JetBrains DataGrip
in this url
bash
jdbc:mysql://localhost:3306/?characterEncoding=utf-8&serverTimezone=UTC