当前位置:网站首页>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没有起到应有的作用?
边栏推荐
- 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
- Alibaba test engineer with an annual salary of 500000 shares notes: a complete set of written tests of software testing
- Oracle database knowledge points (IV)
- Makefile judge custom variables
- MPLS experiment
- 数据库表外键的设计
- Eight year test old bird, some suggestions for 1-3 year programmers
- Wechat official account and synchronization assistant
- 机器学习基础:用 Lasso 做特征选择
猜你喜欢
Shell script three swordsman sed
Sorry, Tencent I also refused
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.
(Introduction to database system | Wang Shan) Chapter V database integrity: Exercises
CesiumJS 2022^ 源码解读[8] - 资源封装与多线程
Introduction to A-frame virtual reality development
Print diamond pattern
Release and visualization of related data
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).
Future source code view -juc series
随机推荐
功能:求出菲波那契数列的前一项与后一项之比的极限的 近似值。例如:当误差为0.0001时,函数值为0.618056。
12. Go implementation of integer to Roman numeral and leetcode
For loop
Thinkphp6 integrated JWT method and detailed explanation of generation, removal and destruction
gslb(global server load balance)技术的一点理解
不得不会的Oracle数据库知识点(一)
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
[complimentary ppt] kubemeet Chengdu review: make the delivery and management of cloud native applications easier!
Stock price forecast
Cloud dial test helps Weidong cloud education to comprehensively improve the global user experience
URL (data:image/png; Base64, ivborw0k... Use case
Analysis and solution of lazyinitializationexception
手机异步发送短信验证码解决方案-Celery+redis
Joint examination of six provinces 2017
How to be a professional software testing engineer? Listen to the byte five year old test
Alibaba test engineer with an annual salary of 500000 shares notes: a complete set of written tests of software testing
1-redis architecture design to use scenarios - four deployment and operation modes (Part 1)
@EnableAsync @Async
Future source code view -juc series
It is worthy of "Alibaba internal software test interview notes" from beginning to end, all of which are essence