权限的定义
MySQL的权限定义就是定义能够使用的SQL语句
ALL:
SELECT,INSERT, UPDATE, DELETE, create, DROP, RELOAD, SHUTDOWN, PROCESS, FILE, REFERENCES, INDEX, ALTER, SHOW DATABASES, SUPER, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, REPLICATION SLAVE, REPLICATION CLIENT, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, CREATE USER, EVENT, TRIGGER, CREATE TABLESPACE
ALL : 中所有权限,一般是普通管理员拥有的
with grant option:超级管理员才具备的,有给别的用户授权的功能
授权其他用户为超级管理员
grant all on *.* to oldguo@'10.0.0.%' identified by '132' with grant option;
网友评论