# 创建用户 gogs, 密码为 111111
create user 'gogs'@'%' identified by '111111';
# 为用户授权
grant all on gogs.* to 'gogs'@'%';
flush privileges;
# 为指定用户授权
grant select,insert,update,delete on *.* to '用户名'@'主机名';
2.1.2 查询用户
select Host,user from user;
2.1.3 删除用户
drop user '用户名'@'主机名';
2.1.4 撤销用户授权
revoke all privileges on *.* from 'wyy'@'192.168.0.105';