1.创建用户
sql
CREATE USER newuser WITH PASSWORD 'password';
2.创建数据库
sql
CREATE DATABASE newdatabase;
3.给用户赋权
sql
GRANT ALL PRIVILEGES ON DATABASE newdatabase TO newuser;
给用户newuser
数据库(newdatabase
)的所有权限