我正在尝试登录我的postgresql.After研究--我已经解决了许多问题--从一个奇怪的python依赖问题到创建名称和密码为db的sudoers,到删除和重新安装postgresql,仍然不能以默认用户"postgres“的身份登录。一个简单的错误,但我找不到一个直接的答案。
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?注意:
发布于 2021-08-17 09:49:18
我也面临着这个问题--你试试这个方法,这是我的工作。
If You using Linux then do according your server path。
窗口路径->
转到-> C:\Program Files\PostgreSQL\11\data,然后打开pg_hba.conf
查找和替换md5 or sha256 to trust
local replication all trust (Change md5 or sha256 to trust)
host replication all trust (Change md5 or sha256 to trust)也许这个方法对你有帮助。
https://stackoverflow.com/questions/68814888
复制相似问题