【问题标题】:server closed the connection unexpectedly python服务器意外关闭连接python
【发布时间】:2020-04-04 20:16:14
【问题描述】:
server closed the connection unexpectedly
        This probably means the server terminated abnormally
        before or while processing the request.

当我使用 docker exec ...

psql: error: could not connect to server: could not translate
 host name "potgres" to address: No address associated with hostname

我的端口看起来是这样的:

0.0.0.0:5431->5431/tcp, 5432/tcp

即使我更改了 file.yml 中的端口号,也没有任何反应!

【问题讨论】:

    标签: python-3.x postgresql ubuntu docker-compose


    【解决方案1】:

    您确定您的主机名拼写正确吗?

    psql:错误:无法连接到服务器:无法翻译 主机名“potgres”到地址:没有与主机名关联的地址

    您似乎将 postgres 拼错为 potgres。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-03-31
      • 2012-09-29
      • 1970-01-01
      • 1970-01-01
      • 2022-11-30
      • 2021-12-23
      • 2021-08-24
      相关资源
      最近更新 更多