我将使用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