一、找到数据库配置文件pg_hba.conf 路径:..\..\PostgreSQL\12\data\pg_hba.conf 二、修改 IPv4 local connections 属性 三、重启PostgreSQL服务