MySQL用户管理

创建用户

create user 用户名@localhost identified by '密码';

分配权限

grant 权值 on 库名 .表名 to 用户@localhost 

回收权限

revoke 权值 on 库名 .表名 from 用户@localhost 

修改密码

set password = password('新密码')

删除用户

drop user 用户@localhost 

原文地址:https://www.cnblogs.com/chenliuxiao/p/9329345.html