使用Windows上的R通过SSL连接到Postgres

时间:2018-04-10 15:47:49

标签: r windows ssl rpostgresql

我正在尝试使用带有RPostgreSQL包的SSL(在Windows上)从R连接到PostgreSQL数据库。

$ sed -i '/2/{a\hello
w /dev/stdout
}' ip.txt
2

但是我收到以下错误:

dbConnect(dbDriver("PostgreSQL"), 
          user = user, 
          password = password, 
          host = host, 
          dbname = "dbname=dbname sslmode=require", 
          port = 5432)

我在SO上找到了详细的解决方案R RPostgreSQL Connect to Remote Postgres Database with SSL 但遗憾的是我无法在Windows上试用它。

任何人都知道如何在Windows上解决此问题?

0 个答案:

没有答案
相关问题