mysql - phpMyAdmin 报告 'No Privileges'

标签 mysql phpmyadmin easyphp

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

相关文章:

php - mySQL 如果其他表中没有匹配项则选择

ssh - Mysql 恢复 1GB db 错误 2006 BLOB 文件

mysql - 我可以下载 Phpmyadmin 数据库吗?

mysql - EasyPHP DEVSERVER 16.1.1上配置MySQL数据库路径

php - 循环PHP,按组无重复字段,求和mysql

mysql - 不使用遗留链接的 Docker 通信

php - 将 SQL where CASE 查询转换为 Yii2 Active Record

mysql - 在表中设置一个字段,用于存储两个外键相关的数据,并编号

php - 添加后的 Codeigniter 查询

php - PDO连接错误: php_network_getaddresses: getaddrinfo failed