长话短说,我最终在 EasyPHP 中从 PHPMyAdmin 中删除了 root 用户。经过一番研究,我使用 skip-grant-tables 重新获得数据库访问权限。但是,现在我无法执行任何操作,因为 root 用户拥有“No Privileges”。
也就是说,当以“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 文件吗?
有什么想法吗?这确实阻止了我的应用程序开发。
谢谢。
最佳答案
这太烦人了。
这似乎是 phpMyAdmin 的一个错误。
清除您的浏览器 cookie,发生的事情是 phpMyAdmin 已经“缓存”了您没有(或可能在某些时候没有)创建数据库访问的事实。
除了在浏览器窗口中删除 phpMyAdmin 的 cookie(以获取新的“ session ID”)或删除 phpMyAdmin Web 服务器上的 session 文件之外,没有其他方法可以重置它。
关于mysql - phpMyAdmin 报告 'No Privileges',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4770348/