能够通过dbConnect而不是src_postgres连接AWS Redshift

时间:2017-03-27 10:40:57

标签: r amazon-web-services dplyr rpostgresql

我将使用dbConnect查询连接到AWS Redshift

conn_loss <- dbConnect(drv, host="hydrogen2.YOURHOST.us-east-1.redshift.amazonaws.com", 
                 port="5439",
                 dbname="mydb", 
                 user="master_user", 
                 password=password)

但是,当我尝试使用src_postgres

进行连接时
myRedshift <- src_postgres(dbname = "mydb",
                           host = "hydrogen2.YOURHOST.us-east-1.redshift.amazonaws.com",
                           port = 5439,
                           user = "master_user", 
                           password = "password")

我收到此错误:

Error in postgresqlNewConnection(drv, ...) :   RS-DBI driver: (could not connect

0 个答案:

没有答案