长话短说,我最终在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