📅  最后修改于: 2022-03-11 14:59:02.247000             🧑  作者: Mango
template1=# CREATE USER username WITH PASSWORD 'user_password';
template1=# GRANT ALL PRIVILEGES ON DATABASE "user_database" to username;