2017-07-18 14:20:12
-- 创建用户
create user 'user1'@'%' IDENTIFIED by '1234';
-- 授权
grant create, alter, drop, select, delete, update, insert on java03.* to user1@'%';
-- 撤销权限
revoke create, alter, drop on java03.* from user1@'%';
-- 查询用户权限
show grants for user1@'%';
-- 删除用户
drop user user1@'%';