長話短說,我最終在EasyPHP中從PHPMyAdmin刪除了root用戶。經過一番研究,我使用skip-grant-tables來重新獲得數據庫訪問權限。但是,現在,我無法做任何事情,因爲root用戶擁有'無權限'。phpMyAdmin報告'沒有權限'
這表明,當以「root」身份登錄時,我確實有能力通過SQL創建數據庫。
我嘗試了以下內容,類似:
GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost';
FLUSH PRIVILEGES;
不過,我不能做任何事情。此外,我有此消息:
用於使用鏈接表的附加功能已被禁用。找出爲什麼點擊這裏。
點擊進入顯示:
$cfg['Servers'][$i]['pmadb'] ... OK
$cfg['Servers'][$i]['relation'] ... not OK [ Documentation ]
General relation features: Disabled
$cfg['Servers'][$i]['table_info'] ... not OK [ Documentation ]
Display Features: Disabled
$cfg['Servers'][$i]['table_coords'] ... not OK [ Documentation ]
$cfg['Servers'][$i]['pdf_pages'] ... not OK [ Documentation ]
Creation of PDFs: Disabled
$cfg['Servers'][$i]['column_info'] ... not OK [ Documentation ]
Displaying Column Comments: Disabled
Browser transformation: Disabled
$cfg['Servers'][$i]['bookmarktable'] ... not OK [ Documentation ]
Bookmarked SQL query: Disabled
$cfg['Servers'][$i]['history'] ... not OK [ Documentation ]
SQL history: Disabled
$cfg['Servers'][$i]['designer_coords'] ... not OK [ Documentation ]
Designer: Disabled
$cfg['Servers'][$i]['tracking'] ... not OK [ Documentation ]
Tracking: Disabled
重新安裝的EasyPHP不解決這個問題,並沒有在VirtualStore存在(如一個論壇帖子的建議)。有一個特定的MySQL文件,我應該尋找?
任何想法?這確實阻止了我的應用程序開發。
謝謝。
這聽起來像你只需要正確設置授權表。如果你能幫我一個忙,並且`SELECT * FROM mysql.user WHERE user ='root'`(當然有--skip-grant-tables)並且粘貼給你的東西,這可能會有所幫助。 – cHao 2011-01-22 20:32:51
root @ localhost擁有所有Y的 – Peter 2011-01-22 20:36:36
當你連接時你正在連接到'localhost'? (有時候MySQL可能會變鈍;如果你連接到你的IP地址,它喜歡看到你來自你的IP而不是本地主機。) – cHao 2011-01-22 20:39:44