navicat连接postgres时显示authentication method 10 not supported

使用navicat 连接postgresql 报错如下:

authentication method 10 not supported

编辑/var/lib/postgres/data/postgresql.conf

增加

listen_addresses = '*'

把端口开放,原来是 注释的

port = 5432

在这里插入图片描述

编辑/var/lib/postgres/data/pg_hba.conf

把其他的 host ,local 什么的都注释

增加:

# "local" is for Unix domain socket connections only
local       all     all        trust

# IPv4 local connections:
local       all     all    127.0.0.1/32     trust

# IPv6 local connections:
local       all     all    ::1/128          trust

host        all     all    0.0.0.0/0        password

重启postgres

#重启postgresql数据库
systemctl restart postgresql-14

测试连接,连接成功

在这里插入图片描述

评论 7
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值