OHDSI Home | Forums | Wiki | Github

Problems with Data Extraction

I was trying to run following code but I am getting the error:

connectionDetails <- createConnectionDetails(dbms = “postgresql”,server = “localhost/ohdsi”, user = “test”, password =“test”)

Error Message:
Error in .jcall(drv@jdrv, “Ljava/sql/Connection;”, “connect”, as.character(url)[1], :
org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.

What could be the possible solution?

t