首页 > 数据库 >mysql8权限控制

mysql8权限控制

时间:2022-12-14 15:44:40浏览次数:65  
标签:控制 grant mysql8 xxx .% IDENTIFIED xx test 权限

CREATE USER 'test'@'xxx.xx.xx.%' IDENTIFIED BY '123';
grant all privileges on *.* to 'test'@'xxx.xx.xx.%' IDENTIFIED BY '123' with grant option;
flush privileges;  

CREATE USER 'test'@'xxx.xx.xx.%' IDENTIFIED BY '123';
grant Select,Insert on db.test_table to 'test'@'xxx.xx.xx.%' IDENTIFIED BY '123' with grant option;
flush privileges;  

标签:控制,grant,mysql8,xxx,.%,IDENTIFIED,xx,test,权限
From: https://www.cnblogs.com/route/p/16982360.html

相关文章