创建 PostgreSQL 数据库
Darryl Reeves
Industry Assistant Professor, New York University

postgres "超级用户" 角色postgres 拥有的权限postgres 需谨慎finances 数据库


CREATE USERCREATE USER newuser;
newuser 可在数据库中建表CREATE USER newuser WITH PASSWORD 'secret';
ALTER USER newuser WITH PASSWORD 'new_password';
创建 PostgreSQL 数据库