gpt4 book ai didi

赫罗库 PG :psql not working

转载 作者:行者123 更新时间:2023-12-03 01:09:35 25 4
gpt4 key购买 nike

我尝试通过运行命令“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?

谁能告诉我如何修复这些错误并正确连接到我的数据库。提前致谢!

最佳答案

试试这个:

heroku pg:psql DATABASE_URL

关于赫罗库 PG :psql not working,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14465746/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com