查询用户:

use mysql;

select host,user from mysql.user;

创建用户:

create user 'mhc'@'%' identified by 'mhc.123';

查看权限:

show grants for mhc@'%';

05-11 21:52