csjoz11

导航

MYSQL添加权限

CREATE USER 'jame'@'%';
 
GRANT GRANT OPTION ON *.* TO 'jame'@'%';
 
GRANT 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 ON *.* TO 'jame'@'%';
 
 
CREATE USER 'james'@'%' IDENTIFIED BY '111111';
 
GRANT GRANT OPTION ON *.* TO 'james'@'%';
 
GRANT 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 ON *.* TO 'james'@'%';

 

posted on 2017-07-27 11:20  csjoz11  阅读(272)  评论(0编辑  收藏  举报