我刚刚从Homebrew在mac上安装了mysql
brew install mysql
mysql -V
mysql Ver 8.0.11 for osx10.13 on x86_64 (Homebrew)
从终端可以工作,我可以登录到mysql,但是从Sequel Pro中它说
无法连接到主机127.0.0.1,或请求超时。请确保地址正确且您具有必要的权限,或尝试增加连接超时时间(当前为10秒)。MySQL报错:无法加载认证插件'caching_sha2_password':dlopen(/usr/local/lib/plugin/caching_sha2_password.so, 2):未找到镜像。我无法确定我缺少什么。
my.cnf
文件在我的机器上(macOS High Sierra 10.13.5)。 - Hattori Hanzōbrew install mysql
中运作良好,使用/usr/local/etc/my.cnf
。 - mintwhipALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '';
- 这对我有效。 - Vincent Tang