# 创建用户
create user zhangsan identified by 'zhangsan';
# 赋数据库权限
grant all privileges on 数据库名字.* to zhangsan@'%' identified by 'zhangsan';
# 刷新权限
flush privileges;
# 显示权限
show grants for 'zhangsan';
# 改密码
update user set authentication_string = password('新密码') where user = 'zhangsan' and host = '%';
flush privileges;
# 删账户
drop user zhangsan@'%';