Mysql Grant權限(WITH GRANT OPTION)

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

Mysql Grant權限(WITH GRANT OPTION)

解決方法:在最後加上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 Grant權限(WITH GRANT OPTION)

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章