当前位置:网站首页>mysql使用视图报错,EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
mysql使用视图报错,EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
2022-07-04 00:39:00 【CSDN问答】
有一张员工表staff
添加视图,仅读2个字段
CREATE VIEW staff_view AS SELECT name,mobile FROM staff;
添加视图权限
GRANT select, SHOW VIEW ON staff_view TO 'test'@'%' IDENTIFIED BY 'test';
查询视图时,报错提示 EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
网上说是因为没有给staff表增加select权限
但是视图的作用之一不是为了安全性吗,如果staff表增加了查看权限,那直接查表不就行了?staff_view没有起到应有的作用?
边栏推荐
- 功能:求出菲波那契数列的前一项与后一项之比的极限的 近似值。例如:当误差为0.0001时,函数值为0.618056。
- A-Frame虚拟现实开发入门
- Swagger2 quick start and use
- Analysis and solution of lazyinitializationexception
- 不得不会的Oracle数据库知识点(一)
- system. Exit (0) and system exit(1)
- Arc 135 supplementary report
- It's OK to have hands-on 8 - project construction details 3-jenkins' parametric construction
- The culprit of unrestrained consumption -- Summary
- Detailed explanation of the relationship between Zhongtai, wechat and DDD
猜你喜欢

打印菱形图案

MySQL winter vacation self-study 2022 12 (1)

Print diamond pattern

(Video + graphics and text) introduction to machine learning series - Chapter 4 naive Bayes

A Kuan food rushed to the Shenzhen Stock Exchange: with annual sales of 1.1 billion, Hillhouse and Maotai CCB are shareholders

MySQL 8.0.12 error: error 2013 (HY000): lost connection to MySQL server during query
![CesiumJS 2022^ 源码解读[8] - 资源封装与多线程](/img/d2/99932660298b4a4cddd7e5e69faca1.png)
CesiumJS 2022^ 源码解读[8] - 资源封装与多线程

Function: find the sum of the elements on the main and sub diagonal of the matrix with 5 rows and 5 columns. Note that the elements where the two diagonals intersect are added only once. For example,

The super fully automated test learning materials sorted out after a long talk with a Tencent eight year old test all night! (full of dry goods

功能:求5行5列矩阵的主、副对角线上元素之和。注意, 两条对角线相交的元素只加一次。例如:主函数中给出的矩阵的两条对角线的和为45。
随机推荐
BBS forum recommendation
system. Exit (0) and system exit(1)
12. Go implementation of integer to Roman numeral and leetcode
2-redis architecture design to use scenarios - four deployment and operation modes (Part 2)
Axure resources and prototype tool Axure RP 9 download
The first training of wechat applet
Five high-frequency questions were selected from the 200 questions raised by 3000 test engineers
Employees' turnover intention is under the control of the company. After the dispute, the monitoring system developer quietly removed the relevant services
Global and Chinese market of melting furnaces 2022-2028: Research Report on technology, participants, trends, market size and share
Stock price forecast
From functional testing to automated testing, how did I successfully transform my salary to 15K +?
On the day when 28K joined Huawei testing post, I cried: everything I have done in these five months is worth it
Why use get/set instead of exposing properties
8. Go implementation of string conversion integer (ATOI) and leetcode
swagger中响应参数为Boolean或是integer如何设置响应描述信息
Reading notes on how programs run
1-redis architecture design to use scenarios - four deployment and operation modes (Part 1)
What is regression testing? Talk about regression testing in the eyes of Ali Test Engineers
From functools import reduce -- see the use of reduce function from typical examples
Future源码一观-JUC系列