QLSTATE[HY000] [2054] The server requested authentication method unknown to the client
解决方案
找到安装mysql的位置 因为我是用brew安装的
所以用 brew list mysql 找到安装位置
在finder下使用快捷键command_shift+G 输入 mysql配置文件路径 /usr/local/Cellar/mysql/8.0.11/.bottle/etc
修改配置文件my.cn 加入语句 default_authentication_plugin=mysql_native_password
重启mysql
mysql.server restart