【mysql错误】SELECT command denied to user 'longfor_read'@'id地址' for table 'help_topic'

在线错误提示:php

SELECT command denied to user 'longfor_read'@'id地址' for table 'help_topic';mysql

缘由:mysql用户没有执行查询help_topic表的权限,须要root用户受权。sql

解决方案:it

# ./mysql -uroot -ptable

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

> GRANT SELECT, INSERT, UPDATE, DELETE ON phpmyadmin.help_topic TO 'longfor_read'@'id地址' IDENTIFIED BY '';command

> flush privileges;查询

> exit;top