MySql 创建用户以及授权

查看用户名称

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';

猜你喜欢

转载自www.cnblogs.com/abc23/p/12079886.html