#1142 - SELECT command denied to user #39;#39;@#39;localhost#39; for table #39;pma_table_uiprefs#39;(#1142 - SELECT 命令拒绝用户 @localhost 表 pma_table_uiprefs)
问题描述
希望有人能帮助我,因为我在网上查询过这个错误,但没有成功或没有具体答案.我正在使用 Windows 和 Xampp.这是我最近将数据库导入 phpmyadmin 后遇到的错误...
Hopefully someone can help me, for I have queried the web with no success or concrete answer to this error. I’m using Windows and Xampp. Here is the error I am getting after I have recently imported the database into phpmyadmin…
#1142 - SELECT command denied to user ''@'localhost' for table 'pma_table_uiprefs'
导入数据库后,phpmyadmin 中一切正常,直到我注销然后重新登录,这就是问题所在.当我单击导入数据库中的任何表时,出现以下错误...
After I import the database, everything is fine in phpmyadmin until I log out and then log back in, this is where the problem lies. When I click on any of the tables from the imported database, I get the following errors…
SELECT 'prefs'
FROM 'phpmyadmin'.'pma_table_uiprefs'
WEHRE 'username' = 'root'
AND 'db_name' = 'afdb'
AND 'table_name' = 'role'
#1142 - SELECT command denied to user ''@'localhost' for table 'pma_table_uiprefs'
再次感谢您花时间阅读我的帖子,希望有人能帮助我解决这个错误.
Thank you again for taking time to read my post and hopefully someone can help me with this error.
推荐答案
我偶然发现了这个问题,我解决了它只需注销 phpMyAdmin 并重新登录.
I stumble upon this issue and I solved it just by logging out of phpMyAdmin and in again.
看一下错误信息查询:
SELECT command denied to user ''@'localhost' for table 'pma_table_uiprefs'
发生这种情况是因为 MySQL 拒绝访问服务器 localhost 上的用户"(空白).默认设置是阻止来自匿名用户的所有请求.
This happens due to MySQL denying access to user "" (blank) at server localhost. The default setting is to block all requests from anonymous users.
通过注销,我们强制 phpMyAdmin忘记"当前用户并让我们输入 MySQL 服务器的登录凭据.
By logging out we force phpMyAdmin to "forget" the current user and let us input the login credentials for the MySQL server.
这篇关于#1142 - SELECT 命令拒绝用户 ''@'localhost' 表 'pma_table_uiprefs'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:#1142 - SELECT 命令拒绝用户 ''@'localhost' 表 'pma_table_uiprefs'
基础教程推荐
- 如何使用 mysql.connector 禁用查询缓存 2022-01-01
- 无法解决整理冲突 2021-01-01
- 将 SQL Server DateTime 列迁移到 DateTimeOffset 2021-01-01
- SSMS 中的权限问题:“对象 'extended_properties'、数据库 'mssqlsystem_resource'、... 错误 229)上的 SELECT 权限被拒绝" 2022-01-01
- SQL 效率:WHERE IN 子查询 vs. JOIN 然后 GROUP 2021-01-01
- SQL:使用来自具有相同列名的两个表中的数据... 2021-01-01
- 在 SQL 中连接多个表 2021-01-01
- 是否可以执行按位分组功能? 2021-01-01
- 需要 MySQL 5.1 中的抽象触发器来更新审计日志 2021-01-01
- SQL Server 实例在登录协商期间返回无效或不受支持的协议版本 2021-01-01
