查看用户名称
use mysql;
创建用户:
create user ‘name‘@‘localhost‘ identified by ‘password‘;
create user ‘name‘@‘192.168.1.%‘ identified by ‘password‘;
授权:
grant select on lib.tb_student to ‘name‘@‘localhost‘;
原文:https://www.cnblogs.com/abc23/p/12079886.html