mysql - 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
解决方案
推荐阅读
- open-liberty - 如何在 open-liberty 服务器中部署新应用程序
- puppet - 具有多个辅助 puppetserver 上的代理的主 puppetserver 都具有相应的节点(证书设置)
- haskell - 运行函数时出错(非详尽模式)
- java - 为什么 Spring Boot 不使用自定义 ObjectMapper bean?
- c++ - 删除空格后在字符串输出中重复字母
- flutter - Flutter:预期 1 个位置参数,但找到 0 个
- wordpress - WooCommerce 的折扣规则在结帐页面上不起作用
- mysql - 为什么锁定读取忽略隔离级别?
- spring-boot - 将数据从微服务插入另一个后如何发送通知?
- python - 创建一个新列以根据其他列的值返回一个字符串