[已解决]#1142 - SELECT command denied to user ''@'localhost' for table 'pma_table_uiprefs'

症状:在phpmyadmin那边打不开表,提示 #1142 - SELECT command denied to user ‘‘@‘localhost‘ for table ‘pma_table_uiprefs‘

解决:

1、在服务器登录mysql

# ./mysql -uroot -p

> source /path/to/phpmyadmin/examples/create_tables.sql;

> GRANT SELECT, INSERT, UPDATE, DELETE ON phpmyadmin.* TO ‘pma‘@‘localhost‘ IDENTIFIED BY ‘‘;

> flush privileges;

> exit;

2、在浏览器刷新phpmyadmin,发现可以打开表了


[已解决]#1142 - SELECT command denied to user ''@'localhost' for table 'pma_table_uiprefs'

时间: 2025-01-18 14:29:48

[已解决]#1142 - SELECT command denied to user ''@'localhost' for table 'pma_table_uiprefs'的相关文章

ERROR 1142 (42000): SELECT command denied to user ''@'localhost' for table 'user'

ERROR: Access denied for user 'root'@'localhost' (using password: NO)    发现:    mysql -u [email protected] -p 成功    mysql -u root -p 失败    mysql> SELECT user, host FROM mysql.user;    ERROR 1142 (42000): SELECT command denied to user ''@'localhost' f

mysql SELECT command denied to user 'root'@'localhost' for table 'XXX' 报错1142

还是数据库权限的问题,不知道为啥赋给了所有权限后还是有各种权限问题,看来有空得整理一下mysql所有相关权限的问题了... 下面才是解决这个select权限的方法: mysql SELECT command denied to user 'root'@'localhost' for table 'XXX' 报错1142

[phpmyadmin] phpmyadmin select command denied to user

phpmyadmin 在查看一个数据库中Table的数据的时候,会提示 select command denied to user 在Ubuntu下,我是使用重装Phpmyadmin的方式解决的 卸载phpmyadmin sudo apt-get remove phpmyadmin 安装phpmyadmin sudo apt-get install phpmyadmin 建立软链接(重装之前,/var/www 已经有phpmyadmin的软链接,可以不执行这段代码) sudo ln -s /us

MySQL:select command denied to user for table ‘proc‘案例

原文:MySQL:select command denied to user for table 'proc'案例 使用EMS MySQL Manager Pro(3.4.0.1)连接MySQL 5.6.20时,报错:"SELECT command denied to user xxx@xxx.xxx.xxx.xxx for table 'proc' 很是纳闷,后面使用同样的权限,发现使用命令工具mysql -h xxxx -u username -p连接时不会报错.个人猜测是因为EMS MyS

mysql客户端(Navicat)远程登录操作遇到问题1142 - XXX command denied to ×××

新建的dbtest用户,访问新建立的TestDB数据库每次都提示1142错误(已经对数据库TestDB赋予了所有权限) 解决方法: Mysql命令: GRANT SELECT ON mysql.* TO [email protected]'%' identified by dbtest; 将对应的表权限赋予给该用户即可

[已解决]报错: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Users/mac/Ana

报错代码: pip3 install gerapy 报错内容: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Users/mac/Ana 解决: sudo pip3 install gerapy [已解决]报错: Could not install packages due to an EnvironmentError: [Errno 13] Permission de

关于MySQL字符集问题【已解决】

关于MySQL字符集问题[已解决] 先来看看我的字符集设置 全都是utf8.这里没有什么问题 接下来我创建了一个数据表book.来看下我创建的表结构 当输入命令:mysql> insert into book(bookname,publisher,author,price,detail) values('PHP','电子工业出版社','武胜利','80.00','与PHP相关的图书');ERROR 1366 (HY000): Incorrect string value: '\xB5\xE7\x

【已解决】java.lang.IllegalArgumentException: column '_id' does not exist

今天用到SimpleCursorAdapter来适配ListView的数据,依旧记得SimpleCursorAdapter必须匹配一个字段名为_id的主键列,一开始我用SQLiteDatabase的rawQuery方法拼sql查询,因为是用SELECT * FROM table_name,所以一切正常. 后来我用query方法就挂了,抛出了java.lang.IllegalArgumentException: column '_id' does not exist异常,然后我发现原来是参数col

启动httpd报错-已解决

[[email protected] ~]# service httpd startStarting httpd: (13)Permission denied: make_sock: could not bind to address 192.168.1.153:28080no listening sockets available, shutting downUnable to open logs [FAILED][[email protected] ~]# 临时办法: [[email pro