使用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