sql:
create role test with login password 'test' noinherit;
create database test owner test;
pg_hba:
host all all 0.0.0.0/0 md5;
local all all md5;
登录:
psql -U test -d test
test#= c 其他数据库
其他数据库#= ??
怎么像mysql那样主动授权后才能进不授权不能进。这个好像是默认都能进。
pgsql好像刚好反过来,主动取消授权的不能进,其他都能进。
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…