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