-
Notifications
You must be signed in to change notification settings - Fork 5
Description
I am at chapter 5.3 in the book and ran into an error when running this code:
con <- sp_get_postgres_connection(
host = "localhost",
port = 5439,
user = "postgres",
password = "postgres",
dbname = "postgres",
seconds_to_test = 30,
connection_tab = TRUE
)
Error:
Error in sp_get_postgres_connection(host = "localhost", port = 5439, user = "postgres", :
Database is not ready - reason: could not connect to server: Connection refused (0x0000274D/10061)
Is the server running on host "localhost" (::1) and accepting
TCP/IP connections on port 5439?
could not connect to server: Connection refused (0x0000274D/10061)
Is the server running on host "localhost" (127.0.0.1) and accepting
TCP/IP connections on port 5439?
I am on Windows 10. Postgresql was installed on my machine prior to installing docker. I was able to install docker successfully and run sp_make_simple_pg("cattle"). I stopped postgres and tried restarting but still got this error. Please advise, thank you.