Mac 用 brew 安装 mysql,并且配置远程连接授权
1、brew install mysql 2、brew services start mysql 3、mysql_secure_installation cometdeMacBook-Pro:~ comet$ mysql_secure_installation Securing the MySQL server deployment. Connecting to MySQL using a blank password. VALIDATE PASSWORD PLUGIN can be used to test passwords and improve security. It checks the strength of password and allows the users to set only those passwords which are secure enough. Would you like to setup VALIDATE PASSWORD plugin? Press y|Y for Yes, any other key for No: N // 这个选yes的话密码长度就必须要设置为8位以上,但我只想要6位的 Please set the password for root here. New password: // 设置密码 Re-enter