Mysql Grant权限(WITH GRANT OPTION)

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Mysql Grant权限(WITH GRANT OPTION)相关的知识,希望对你有一定的参考价值。

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

技术图片

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

技术图片

以上是关于Mysql Grant权限(WITH GRANT OPTION)的主要内容,如果未能解决你的问题,请参考以下文章

with admin option和with grant option的区别

with admin option和with grant option的用法

mysql-修改密码(error-1290 (HY000): The MySQL server is running with the --skip-grant-tables option so)

mysql-修改密码(error-1290 (HY000): The MySQL server is running with the --skip-grant-tables option so)

解决mysql的赋权操作之GRANT ALL PRIVILEGES ON *.* TO ‘root‘@‘%‘ IDENTIFIED BY ‘123456‘ WITH GRANT OPTION问题

The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement