当前位置:网站首页>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没有起到应有的作用?
边栏推荐
- [complimentary ppt] kubemeet Chengdu review: make the delivery and management of cloud native applications easier!
- CSP window
- ISBN number
- Axure resources and prototype tool Axure RP 9 download
- Global and Chinese markets of distributed control system (DCS) consumption 2022-2028: Research Report on technology, participants, trends, market size and share
- 不得不会的Oracle数据库知识点(一)
- 使用dnSpy对无源码EXE或DLL进行反编译并且修改
- [error record] configure NDK header file path in Visual Studio
- MPLS experiment
- 基于.NetCore开发博客项目 StarBlog - (14) 实现主题切换功能
猜你喜欢
![[prefix and notes] prefix and introduction and use](/img/a6/a75e287ac481559d8f733e6ca3e59c.jpg)
[prefix and notes] prefix and introduction and use

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

长文综述:大脑中的熵、自由能、对称性和动力学

Gauss elimination method and template code

Characteristics of ginger

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

手机异步发送短信验证码解决方案-Celery+redis

Unity Shader入门精要读书笔记 第三章 Unity Shader基础
![[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

From functional testing to automated testing, how did I successfully transform my salary to 15K +?
随机推荐
Future源码一观-JUC系列
CesiumJS 2022^ 源码解读[8] - 资源封装与多线程
Employees' turnover intention is under the control of the company. After the dispute, the monitoring system developer quietly removed the relevant services
基于.NetCore开发博客项目 StarBlog - (14) 实现主题切换功能
On the day when 28K joined Huawei testing post, I cried: everything I have done in these five months is worth it
CSP window
Test the influence of influent swacth on the electromagnetic coil of quartz meter
Analysis and solution of lazyinitializationexception
Function: write function fun to find s=1^k+2^k +3^k ++ The value of n^k, (the cumulative sum of the K power of 1 to the K power of n).
A-Frame虚拟现实开发入门
Oracle database knowledge points that cannot be learned (III)
[prefix and notes] prefix and introduction and use
我管你什么okr还是kpi,PPT轻松交给你
Windos10 reinstallation system tutorial
Design of database table foreign key
Several ways to set up a blog locally [attach relevant software download links]
How to set the response description information when the response parameter in swagger is Boolean or integer
Stock price forecast
The FISCO bcos console calls the contract and reports an error does not exist
机器学习基础:用 Lasso 做特征选择