--grant 操作 MySQL 表操作的所有权限
GRANT ALL ON db.* TO 'root'@'192.168.2.%' IDENTIFIED BY "root"

--grant 操作 MySQL 外键权限
grant references on root.* to 'root'@'192.168.2.%';

--grant 操作 MySQL 临时表权限
grant create temporary tables on root.* to 'root'@'192.168.2.%';

--grant 操作 MySQL 索引权限
grant index on root.* to 'root'@'192.168.2.%';

--grant 操作 MySQL 视图、查看视图源代码权限
grant create view on root.* to 'root'@'192.168.2.%';
grant show view on root.* to 'root'@'192.168.2.%';

--grant 操作 MySQL 存储过程、函数权限
grant create routine on root.* to 'root'@'192.168.2.%';
grant alter  routine on root.* to 'root'@'192.168.2.%';
grant execute        on root.* to 'root'@'192.168.2.%';

相关文章:

  • 2021-12-17
  • 2021-05-21
  • 2022-12-23
  • 2022-12-23
  • 2022-01-07
  • 2021-04-21
  • 2021-06-02
猜你喜欢
  • 2021-08-09
  • 2021-11-03
  • 2022-02-22
  • 2021-06-21
相关资源
相似解决方案