我尝试通过运行命令“heroku pg:psql”连接我的应用在Heroku上的Postgres数据库,但是遇到了以下错误信息:
psql: could not connect to server: Connection timed out (0x0000274C/10060)
Is the server running on host "URL.com"(IP address) and accepting
TCP/IP connections on port 5432?
我还尝试使用Pgadmin连接,但是遇到了错误:
Server doesn't listen. Is the server running on host "URL.com" (IP address) and accepting
TCP/IP connections on port 5432?
有人能告诉我如何修复这些错误并正确连接到我的数据库吗?谢谢!