【MySQL】MySQL 8 + macOS 错误:Authentication plugin 'caching_sha2_password' cannot be loaded

Posted by 西维蜀黍 on 2019-10-06, Last Modified on 2021-09-21

错误信息

Authentication plugin ‘caching_sha2_password’ cannot be loaded: dlopen(/usr/local/mysql/lib/plugin/caching_sha2_password.so, 2): image not found

这是 MySQL 的问题,不是客户端问题,所以不管是用 Navicat Premium 还是 Sequel Pro 连接 MySQL,会碰到一样的错误。

解决方法

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'yourpassword';

Reference