To have launchd start mysql now and restart at login: brew services start mysql Or, if you don't want/need a background service you can just run: mysql.server start
使用密码登录
1
mysql -uroot -p
执行安全设置
1
mysql_secure_installation
登录
1
mysql -u root -p
1 2
create database blog default charset utf8 collate utf8_general_ci;