GRANT ALL PRIVILEGES ON `mydb`.* TO 'root'@'192.168.%.%' identified by 'mypwd' WITH GRANT OPTION
GRANT ALL PRIVILEGES ON `mydb`.* TO 'root'@'10.111.1.80' identified by 'mypwd' WITH GRANT OPTION
GRANT ALL PRIVILEGES ON `mydb`.* TO 'root'@'172.%.%.%' identified by 'mypwd' WITH GRANT OPTION
FLUSH PRIVILEGES
不可以用逗号分隔,只能多次授权。
数据库mysql下user表会显示多条授权记录
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)