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;
重启数据库
postgres设置远程访问
阅读 36
2023-10-07
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)