win10系统安装postgresql后无法连接

win10系统安装postgresql v13后在系统服务列表中找不到,连接不上数据库。

修改C:\Program Files\PostgreSQL\13\data\pg_hba.conf文件

把scram-sha-256改成trust就可以了。

#host all all 127.0.0.1/32 scram-sha-256
host all all 0.0.0.0/0 trust

 

具体环境配置请参考

https://blog.csdn.net/chineseboytom/article/details/78868199

posted on 2021-01-21 08:39  慢一拍儿  阅读(308)  评论(0编辑  收藏  举报

导航