希望mysql里面的某个用户只有172.29.8.72和192.168.3.39可以连接上,应该怎么设置啊
1 回答
qq_遁去的一_1
TA贡献1725条经验 获得超7个赞
GRANT ALL PRIVILEGES ON *.* TO 'username'@'172.29.8.72' IDENTIFIED BY 'password' WITH GRANT OPTION;GRANT ALL PRIVILEGES ON *.* TO 'username'@'192.168.3.39' IDENTIFIED BY 'password' WITH GRANT OPTION;flush privileges;
添加回答
举报
0/150
提交
取消