一、创建用户
create user 'user_name' identified by 'password';
二、用户授权
grant [权限名] on 数据库名.表名 to user_name [with option grant];
三、查看数据库中当前存在的用户
select user,host from mysql.user;
四、查看用户所拥有的权限
show grants for user_name
create user 'user_name' identified by 'password';
grant [权限名] on 数据库名.表名 to user_name [with option grant];
select user,host from mysql.user;
show grants for user_name