hehe,let's see how to create a user in Postgresql. It's easy.
we login the psql,and use this command:
create user andrewleung with createdb password '123456';
now,we have create a user which name 'andrewleung' with the password 123456 and the permission of create database. if we wanna cancel the permission of create database,we can use this command:
alter user andrewleung no createdb;
The complete Syntax for the CREATE USER command is
CREATE USER user-name原文链接:https://www.f2er.com/postgresql/197428.html
[[WITH] option ]...
option := SYSID user-id-number
| [NO]CREATEDB
| [NO]CREATEUSER
| IN GROUP groupname [,...]
| [[UN]ENCRYPTED ] PASSWORD 'password'
| VALID UNTIL 'expiration'