mysql>grant all on *.* to test@’192.168.1.20’ identified by ‘123456’
mysql>flush privileges;
结果显示:Grant_priv为"N"

解决方法:在最后加上With Grant Option
mysql>grant all on *.* to test@’192.168.1.20’ identified by ‘123456’ WITH GRANT OPTION
mysql>flush privileges;
结果显示:Grant_priv为"Y"

MySQL权限管理详解
本文详细介绍了如何在MySQL中使用WITH GRANT OPTION进行权限管理,通过具体示例展示如何授予用户特定IP地址上的所有权限,并确保权限正确设置。
1万+

被折叠的 条评论
为什么被折叠?



