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"