首页 > 解决方案 > RStudio/MySQL 连接错误:无法加载插件 sha256_password

问题描述

我是 MySQL 和 RStudio 的新手。我在 RStudio 中收到以下错误: 无法连接到数据库:错误:无法加载插件 sha256_password:找不到指定的模块。

我将不胜感激一些指导。

1)我正在尝试使用以下代码添加连接:

con <- dbConnect(RMySQL::MySQL(), dbname = "world")

2)我之前做了一些研究。


a) 我在c:\ProgramData\MySQL\MySQL Server 8.0中的 my.ini 中进行了以下更改。仍然出现错误。

b) 在服务中重新启动 MySQL 服务器。

default_authentication_plugin=caching_sha2_password  <-- commented existing line
default_authentication_plugin=mysql_native_password    <--- added new line

标签: mysqlrconnection

解决方案


推荐阅读