创建用户并授权
1.CREATE USER pmp@'%' IDENTIFIED BY 'supporter';
2.SET PASSWORD FOR 'pmp'@'%' = PASSWORD('supporter');
3.授权
GRANT SELECT, INSERT, UPDATE, REFERENCES, DELETE, CREATE, DROP, ALTER, INDEX, CREATE VIEW, SHOW VIEW ON supp_app.* TO 'pmp'@'%';
GRANT SELECT, INSERT, UPDATE, REFERENCES, DELETE, CREATE, DROP, ALTER, INDEX, CREATE VIEW, SHOW VIEW ON supp_sys.* TO 'pmp'@'%';
GRANT SELECT, INSERT, UPDATE, REFERENCES, CREATE, ALTER, INDEX, CREATE VIEW, SHOW VIEW ON supp_log.* TO 'pmp'@'%';
GRANT SELECT, INSERT, UPDATE, REFERENCES, DELETE, CREATE, DROP, ALTER, INDEX, CREATE VIEW, SHOW VIEW ON supp_2018.* TO 'pmp'@'%';
flush privileges;
网友评论