当前位置:网站首页>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没有起到应有的作用?
边栏推荐
- 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,
- PMP 考试常见工具与技术点总结
- PMP 考试常见工具与技术点总结
- Sequence list and linked list
- Pair
- Data mining vs Machine Learning: what is the difference between them? Which is more suitable for you to learn
- MySQL 8.0.12 error: error 2013 (HY000): lost connection to MySQL server during query
- 机器学习基础:用 Lasso 做特征选择
- Generic
- 基于.NetCore开发博客项目 StarBlog - (14) 实现主题切换功能
猜你喜欢

How to use AHAS to ensure the stability of Web services?

GUI 应用:socket 网络聊天室
![[GNN] hard core! This paper combs the classical graph network model](/img/a7/2140744ebad9f1dc0a609254cc618e.jpg)
[GNN] hard core! This paper combs the classical graph network model

Bodong medical sprint Hong Kong stocks: a 9-month loss of 200million Hillhouse and Philips are shareholders

Employees' turnover intention is under the control of the company. After the dispute, the monitoring system developer quietly removed the relevant services

功能:将主函数中输入的字符串反序存放。例如:输入字符串“abcdefg”,则应输出“gfedcba”。

URL (data:image/png; Base64, ivborw0k... Use case

Function: store the strings entered in the main function in reverse order. For example, if you input the string "ABCDEFG", you should output "gfedcba".

On covariance of array and wildcard of generic type

Cannot build artifact 'test Web: War expanded' because it is included into a circular depend solution
随机推荐
On covariance of array and wildcard of generic type
Oracle database knowledge points that cannot be learned (III)
Anomalies seen during the interview
[error record] configure NDK header file path in Visual Studio (three header file paths of NDK | ASM header file path selection related to CPU architecture)
Gauss elimination method and template code
Oracle database knowledge points (IV)
How to be a professional software testing engineer? Listen to the byte five year old test
(Video + graphics and text) introduction to machine learning series - Chapter 4 naive Bayes
老姜的特点
删除所有值为y的元素。数组元素中的值和y的值由主函数通过键盘输入。
Thinkphp6 integrated JWT method and detailed explanation of generation, removal and destruction
The FISCO bcos console calls the contract and reports an error does not exist
Design of database table foreign key
Att & CK actual combat series - red team actual combat - V
Function: find the approximate value of the limit of the ratio of the former term to the latter term of Fibonacci sequence. For example, when the error is 0.0001, the function value is 0.618056.
Five high-frequency questions were selected from the 200 questions raised by 3000 test engineers
Global and Chinese market of melting furnaces 2022-2028: Research Report on technology, participants, trends, market size and share
Speed up the energy Internet of things. What can low-power Internet of things technology represented by Zeta do?
PMP 考试常见工具与技术点总结
Test the influence of influent swacth on the electromagnetic coil of quartz meter