1

I'm trying to connect to a PostgreSQL database from R using SSL with the RPostgreSQL package (On windows).

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

But I get the following error :

Error in postgresqlNewConnection(drv, ...) : 
  RS-DBI driver: (could not connect user@host:5432 on dbname "dbname": sslmode value "require" invalid when SSL support is not compiled in)

I found a detailed thread on SO with a solution R RPostgreSQL Connect to Remote Postgres Database with SSL but unfortunately I can't try it on Windows.

Anyone knows how I can solve this issue on Windows ?

1

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.