【发布时间】:2011-06-13 19:26:23
【问题描述】:
长话短说,我最终在 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 文件吗?
有什么想法吗?这确实阻止了我的应用程序开发。
谢谢。
【问题讨论】:
-
听起来你只需要正确设置授权表。如果你能帮我一个忙,
SELECT * FROM mysql.user WHERE user = 'root'(当然是 --skip-grant-tables)并粘贴给你的东西,它可能会有所帮助。 -
当你连接时你正在连接到'localhost'? (MySQL 有时可能很迟钝;如果您连接到您的 IP 地址,它喜欢将您视为来自您的 IP 而不是本地主机。)
-
是的。 127.0.0.1 也有所有 Y。我通过 EasyPHP 运行所有这些
-
有趣... PHPMyAdmin 报告没有权限,但输入“CREATE DATABASE test”实际上会创建一个数据库。
-
是的,
mysql.db中经常有一行代码授予任何人创建名称以(或为)“test”开头的数据库的权限。说到,检查该表是否有任何对root、%或空白用户的引用,前五个权限(选择、插入、更新、创建)中的任何一个或所有都具有“N”。跨度>
标签: mysql phpmyadmin easyphp