本文主要是介绍mysql user grant,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
RPA关于自动创建数据库、表等操作测试
CREATE USER 'zwf'@'127.0.0.1' IDENTIFIED BY 'zwf';
CREATE USER 'zwf'@'%' IDENTIFIED BY 'pwd_zwf@123';
CREATE DATABASE db1 DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
CREATE DATABASE db2 DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
GRANT ALL PRIVILEGES ON db1.* TO 'zwf'@'%';
GRANT ALL PRIVILEGES ON db2.* TO 'zwf'@'%';
REVOKE CREATE ON db1.* FROM 'zwf'@'%';
REVOKE CREATE ON db2.* FROM 'zwf'@'%';
FLUSH PRIVILEGES;
COMMIT;
这篇关于mysql user grant的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!