创建用户
CREATE USER 'testUser'@'%' IDENTIFIED BY 'testUser';
授权
GRANT SELECT, INSERT, UPDATE, REFERENCES, DELETE, CREATE, DROP, ALTER, INDEX, TRIGGER, CREATE VIEW, SHOW VIEW, EXECUTE,
ALTER ROUTINE, CREATE ROUTINE, CREATE TEMPORARY TABLES, LOCK TABLES, EVENT ON `test`.task TO 'testUser'@'%';
原创文章,作者:wdmbts,如若转载,请注明出处:https://blog.ytso.com/267202.html