【问题标题】:xampp mysql: select command deniedxampp mysql:选择命令被拒绝
【发布时间】:2013-10-07 15:47:29
【问题描述】:

我正在使用 xampp om windows 7。我以 root 用户身份使用我设置的密码登录。我创建了一个新数据库(我第一次使用 xampp)。而且我没有任何选项可以在其中创建任何表。 它显示以下错误:

Error
SQL query: DocumentationEdit

SELECT `tables` 
FROM `phpmyadmin`.`pma_recent`
WHERE `username` =  'root'

MySQL said: Documentation

#1142 - SELECT command denied to user ''@'localhost' for table 'pma_recent'

我该如何摆脱它?

我也得到了这一行,在页面底部的某处以及错误消息:

The phpMyAdmin configuration storage is not completely configured, some extended features have been deactivated.

【问题讨论】:

    标签: php mysql xampp


    【解决方案1】:

    http://dev.mysql.com/doc/refman/5.1/en/grant.html

    GRANT SELECT ON db.table TO 'user'@'localhost';
    
    GRANT ALL ON db1.* TO 'jeffrey'@'localhost'; ------------ i think this is much better.
    

    【讨论】:

      猜你喜欢
      • 2019-01-29
      • 2011-08-07
      • 1970-01-01
      • 1970-01-01
      • 2020-09-02
      • 1970-01-01
      • 2019-01-12
      • 2018-04-28
      • 1970-01-01
      相关资源
      最近更新 更多