1142 - show view command denied to user

1142 - show view command denied to user

原因是没有给test用户授予"show_view_priv"权限

mysql> SELECT * FROM mysql.user WHERE User = 'test' and Host = '%'\G;
*************************** 1. row ***************************
Host: %
User: test
Password: ****************
...
Show_view_priv: N
...
1 row in set (0.02 sec)

授权

mysql> update mysql.user set Show_view_priv = 'Y' where user = 'test' and Host = '%';
Query OK, 1 row affected (0.00 sec)
Rows matched: 1 Changed: 1 Warnings: 0 mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec) mysql>

  

上一篇:android导入项目出现R文件不能生成


下一篇:vsftp虚拟主机实战