【发布时间】:2019-09-29 15:39:56
【问题描述】:
我正在尝试使用 RPostgres 包连接到 Redshift。
通常这可以正常工作,但是我使用 VPN 连接到我的公司网络。
运行以下内容,显然带有敏感信息的占位符:
library(RPostgres)
con <- dbConnect(RPostgres::Postgres(),
dbname = "db",
host = "host.redshift.amazonaws.com",
port = 5439,
user = 'me',
password = 'password',
sslmode = 'require')
得到以下错误:
Error in connection_create(names(opts), as.vector(opts)) :
could not connect to server: Operation timed out
Is the server running on host "host.redshift.amazonaws.com" (IP Address) and accepting
TCP/IP connections on port 5439?
我不熟悉 VPN 或它如何影响连接。
对这个问题的笼统性表示歉意,但希望有一些想法至少可以让我开始寻找解决方案。
【问题讨论】:
标签: r rstudio amazon-redshift rpostgresql