我的 Postgresql 服务器在端口 6000(不是默认端口 5432)上运行。如何设置将此端口号放入 doobie jdbc url?
val xa = Transactor.fromDriverManager[IO](
"org.postgresql.Driver", // driver classname
"jdbc:postgresql:databasename", // connect URL (driver-specific)
"user", // user
"password" // password
这是错误消息:
[info] - should success *** FAILED ***
[info] org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.