当前位置:网站首页>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没有起到应有的作用?
边栏推荐
- Oracle database knowledge points (I)
- 【.NET+MQTT】.NET6 环境下实现MQTT通信,以及服务端、客户端的双边消息订阅与发布的代码演示
- MySQL is installed as a Windows Service
- Severity code description the project file line prohibits the display of status error c4996 fopen ('fscanf ', StrCmp): this function or variable may be unsafe The most comprehensive solution
- It is worthy of "Alibaba internal software test interview notes" from beginning to end, all of which are essence
- [NLP] text classification still stays at Bert? Duality is too strong than learning framework
- Analysis and solution of lazyinitializationexception
- 查询效率提升10倍!3种优化方案,帮你解决MySQL深分页问题
- 老姜的特点
- 使用dnSpy对无源码EXE或DLL进行反编译并且修改
猜你喜欢

@EnableAsync @Async

Release and visualization of related data

Shell script three swordsman sed

2-Redis架构设计到使用场景-四种部署运行模式(下)

Cannot build artifact 'test Web: War expanded' because it is included into a circular depend solution

MPLS experiment

On the day when 28K joined Huawei testing post, I cried: everything I have done in these five months is worth it

Characteristics of ginger
![[error record] configure NDK header file path in Visual Studio](/img/9f/89f68c037dcf68a31a2de064dd8471.jpg)
[error record] configure NDK header file path in Visual Studio
![[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
随机推荐
Regular expression of shell script value
Future源码一观-JUC系列
Severity code description the project file line prohibits the display of status error c4996 fopen ('fscanf ', StrCmp): this function or variable may be unsafe The most comprehensive solution
Recommendation of knowledge base management system
Global and Chinese market of process beer equipment 2022-2028: Research Report on technology, participants, trends, market size and share
On covariance of array and wildcard of generic type
swagger中响应参数为Boolean或是integer如何设置响应描述信息
【.NET+MQTT】.NET6 环境下实现MQTT通信,以及服务端、客户端的双边消息订阅与发布的代码演示
Speed up the energy Internet of things. What can low-power Internet of things technology represented by Zeta do?
Global and Chinese markets for instant saliva testing devices 2022-2028: Research Report on technology, participants, trends, market size and share
我管你什么okr还是kpi,PPT轻松交给你
打印菱形图案
Is it really possible that the monthly salary is 3K and the monthly salary is 15K?
基于.NetCore开发博客项目 StarBlog - (14) 实现主题切换功能
Generic
Several ways to set up a blog locally [attach relevant software download links]
不得不会的Oracle数据库知识点(一)
CSP window
Global and Chinese markets of distributed control system (DCS) consumption 2022-2028: Research Report on technology, participants, trends, market size and share
Introduction to thread pool