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