MySQL创建数据库并制定给某用户
程序员文章站
2022-07-14 16:20:24
...
- 创建数据库:
create database dbname;
- 创建用户:
create user 'username'@'%' identified by 'password';
- 将所有权限赋给该用户:
grant all privileges on dbname.* to [email protected]'%' identified by 'password';
下一篇: aliyun & docker