0
点赞
收藏
分享

微信扫一扫

postgres设置远程访问

 

vi /opt/pg14.5/data/pg_hba.conf

host all all 0.0.0.0/0 md5

 

编辑postgresql.conf,修改如下参数:

listen_addresses = '*'

 

create user boraytest with password 'Boray@2022';

ALTER ROLE boraytest CREATEROLE SUPERUSER;

 

重启数据库



举报

相关推荐

0 条评论