【问题标题】:FATAL: database “postgres” is not currently accepting connections致命:数据库“postgres”当前不接受连接
【发布时间】:2020-06-06 08:50:32
【问题描述】:

我在linux ubuntu上,似乎我在运行update pg_database set datallowconn = false;后阻止了我自己,所以现在所有数据库包括postgres、template0和template1都不接受连接,当我尝试连接时它一直说

致命:数据库“postgres”当前不接受连接

我使用的是 postgresql 版本 11

【问题讨论】:

    标签: postgresql postgresql-11


    【解决方案1】:

    哇,这真是个泡菜。

    您将不得不启动服务器in single-user mode,这会绕过检查,然后再次更新 pg_database。

    【讨论】:

      猜你喜欢
      • 2017-03-24
      • 2015-07-31
      • 2013-06-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-07-09
      • 1970-01-01
      相关资源
      最近更新 更多