我正在使用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.
答案 0 :(得分:0)
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.