【发布时间】:2017-04-06 08:19:19
【问题描述】:
我与用户“Postgres”连接并创建了一个用户:
postgres=# CREATE DATABASE db_example ;
postgres=# CREATE USER user WITH PASSWORD 'user123';
postgres=# REVOKE CONNECT ON DATABASE db_example FROM user;
REVOKE
postgres=# \q
稍后,我尝试将用户“user”连接到“db_example”:
root@debian:/home/debian# psql -d db_example -U user -h localhost
psql (9.4.9)
SSL connection (protocol: TLSv1.2, cipher: ECDHE-RSA-AES256-GCM-SHA384, bits: 256, compression: off)
Type "help" for help.
db_example=>
为什么我可以将用户“user”连接到“db_example”?
感谢您的帮助和美好的一天。
【问题讨论】:
标签: postgresql login psql grant