mac 安装mysql
1. 安装homebrew
2. 用brew 安装mysql
执行brew install mysql
,会出现类似的提示:
We've installed your MySQL database without a root password. To secure it run:
mysql_secure_installation
MySQL is configured to only allow connections from localhost by default
To connect run:
mysql -uroot
To have launchd start mysql now and restart at login:
brew services start mysql
Or, if you don't want/need a background se