r - Rstudio中的MongoDB连接与odbc
问题描述
我正在尝试使用 R 中的 library(odbc) 连接到 mongoDB 数据库。首先我从这里安装了驱动程序,然后我使用了以下方法:
con <- dbConnect(odbc::odbc(),
Driver = "MongoDB ODBC 1.3.0 Unicode Driver",
Server = "xxxxx",
AuthMechanism = "SCRAM-SHA-1",
Port = 27017,
Database = "test",
UID = "utest",
PWD = "ptest"
)
但是会出现以下错误:
错误:nanodbc/nanodbc.cpp:983: 08S01: [MySQL][ODBC 1.3(w) Driver]在“等待初始通信数据包”时丢失与 MySQL 服务器的连接,系统错误:10060
我将不胜感激。谢谢
解决方案
推荐阅读
- regex - 用于 IP 和可选 CIDR 的 Linux Grep 或 Sed 正则表达式
- laravel - 如何在迁移中更改字段类型?
- mysql - 将 SELECT 语句 MySQL 转换为函数 PL/SQL
- javascript - 如何将子组件嵌套到父组件中并导出它们?
- java - 如何修复:DecimalFormat No Class Found 错误 // 已解决
- typescript - Regd : Post api 在 Ionic 6 中不起作用 & 无法从服务器获得响应
- java - HttpMessageNotReadableException:无法读取 JSON:使用 Spring Boot 和 Android 无法识别的字段
- yii2 - 如何使用 Kartik 网格和 select2 过滤器过滤空值?
- javascript - 如何在 html 中选择文件并在 javascript 中管理它
- angular - Angular 创建多个模板实例