我正在连接MySQL - 8.0与MySQL工作台和得到以下错误:
无法加载认证插件“caching_sha2_password”: dlopen (/ usr /地方/ mysql / lib /插件/ caching_sha2_password。所以,2):图像 没有找到
我也尝试过其他客户端工具。
有什么解决办法吗?
我正在连接MySQL - 8.0与MySQL工作台和得到以下错误:
无法加载认证插件“caching_sha2_password”: dlopen (/ usr /地方/ mysql / lib /插件/ caching_sha2_password。所以,2):图像 没有找到
我也尝试过其他客户端工具。
有什么解决办法吗?
当前回答
注意:适用于Linux (Debian, Ubuntu, Mint)
我得到了这个错误:
MySQL Error Message: Plugin caching_sha2_password could not be loaded: /usr/lib/x86_64-linux-gnu/mariadb19/plugin/caching_sha2_password.so: cannot open shared object file: No such file or directory
我通过以下步骤解决了这个问题:
在mysql控制台输入:$ mysql -u root -p,如果你没有root用户的密码,那么: 使用mysql数据库:>使用mysql; mysql> Alter user 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password'; 退出……mysql >退出; 完成了!
其他回答
注意:适用于Linux (Debian, Ubuntu, Mint)
我得到了这个错误:
MySQL Error Message: Plugin caching_sha2_password could not be loaded: /usr/lib/x86_64-linux-gnu/mariadb19/plugin/caching_sha2_password.so: cannot open shared object file: No such file or directory
我通过以下步骤解决了这个问题:
在mysql控制台输入:$ mysql -u root -p,如果你没有root用户的密码,那么: 使用mysql数据库:>使用mysql; mysql> Alter user 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password'; 退出……mysql >退出; 完成了!
当所使用的工具与MySQL8不兼容时出现此错误,请尝试更新到MySQL Workbench的最新版本
打开sql命令提示符:
然后输入mysql密码
最后使用:
ALTER USER 'username'@'ip_address' IDENTIFIED WITH mysql_native_password BY 'password'
参见:https://stackoverflow.com/a/49228443/6097074
谢谢。
刚刚下载了最新的mysqlworkbench,它与最新的加密兼容:
https://downloads.mysql.com/archives/workbench/
注意:在Mac big Sur上,最新的两个版本:8.0.22和8.0.23是错误的,不能工作。
使用8.0.21直到这些问题得到解决
PIP卸载mysql-connector
然后安装 PIP安装mysql-connector-python