grant 授权用户增删改查权限: grant select, insert, update, delete on testdb.* to sky_user@‘%‘
grant 数据库开发人员,创建表、索引、视图、存储过程、函数等权限。 grant create on testdb.* to developer@‘192.168.0.%‘; grant alter on testdb.* to developer@‘192.168.0.%‘; grant drop on testdb.* to developer@‘192.168.0.%‘;
授权某个用户对该库的所有权限 grant all on *.* to 用户@‘%‘ 执行刷新:flush privileges
赋予任何主机访问数据库的权限 GRANT ALL PRIVILEGES ON *.* TO ‘root‘@‘%‘ WITH GRANT OPTION