我刚刚在我的 macOS v10.13.4 上安装了带有 Homebrew 的 MySQL Ver 14.14 Distrib 5.7.22。
我运行了命令:
brew install mysql
安装完成后,按照 Homebrew 的指示,我运行命令:
mysql_secure_installation
并返回错误:Error: Authentication plugin 'caching_sha2_password' cannot be loaded: dlopen(/usr/local/Cellar/mysql/5.7.22/lib/plugin/caching_sha2_password.so, 2): image not found
我尝试了一些事情,比如在 my.cnf 文件中将 default_authentication_plugin 更改为 mysql_native_password,但它仍然抛出相同的错误。
接下来我尝试运行:
mysql_upgrade -u root
我再次抛出相同的错误mysql_upgrade: Got error: 2059: Authentication plugin 'caching_sha2_password' cannot be loaded: dlopen(/usr/local/Cellar/mysql/5.7.22/lib/plugin/caching_sha2_password.so, 2): image not found while connecting to the MySQL server
Upgrade process encountered error and will not continue.
任何帮助表示赞赏。
mysql ×1