【发布时间】:2020-05-30 11:35:45
【问题描述】:
我刚刚在我的 macOS v10.13.4 上安装了 MySQL Ver 14.14 Distrib 5.7.22 with Homebrew。
我运行了命令: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.
感谢任何帮助。
【问题讨论】:
-
这个问题最好在 dba.stackexchange.com 上提出
-
stackoverflow.com/questions/51179516/… 中的说明帮助我基本上 Sequal Pro 无法处理新密码,将 mysql-password 引擎的类型恢复为“旧方式”为我解决了它
标签: mysql macos macos-high-sierra