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"
原文地址:https://blog.51cto.com/1929297/2413775
时间: 2024-11-09 07:21:22