我發出以下命令允許root登錄的任何主機MySQL授權的所有特權是沒有得到應用
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'xxxx' WITH GRANT OPTION;
FLUSH PRIVILEGES;
,但它不更新?
mysql> show grants; +----------------------------------------------------------------------------------------------------------------------------------------+ | Grants for [email protected] | +----------------------------------------------------------------------------------------------------------------------------------------+ | GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY PASSWORD '*xxxxxxxxxxxxxxxxx33487256' WITH GRANT OPTION | | GRANT PROXY ON ''@'' TO 'root'@'localhost' WITH GRANT OPTION | +----------------------------------------------------------------------------------------------------------------------------------------+ 2 rows in set (0.00 sec)
謝謝,它確實在命令中表現出來。爲什麼我仍然無法從其他主機登錄。錯誤1045(28000):訪問拒絕用戶'root'@'xxxx'(使用密碼:是) – veccy
您發出了哪個命令?你的服務器上是否安裝了MySQL以允許來自遠程主機的連接? – Kenny
那就是我想要歸檔的東西。 *授予所有特權*。*到'root'@'%'不提供此 – veccy