当前位置:网站首页>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没有起到应有的作用?
边栏推荐
- Is the account opening of Guoyuan securities really safe and reliable
- Data storage - interview questions
- 7.1 学习内容
- [common error] custom IP instantiation error
- A dichotomy of Valentine's Day
- 国元证券开户是真的安全可靠吗
- Global and Chinese market of underwater bags 2022-2028: Research Report on technology, participants, trends, market size and share
- What is the GPM scheduler for go?
- Future源码一观-JUC系列
- The frost peel off the purple dragon scale, and the xiariba people will talk about database SQL optimization and the principle of indexing (primary / secondary / clustered / non clustered)
猜你喜欢
The difference between objects and objects
Thinkphp6 integrated JWT method and detailed explanation of generation, removal and destruction
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).
Alibaba test engineer with an annual salary of 500000 shares notes: a complete set of written tests of software testing
功能:编写函数fun求s=1^k+2^k +3^k + ......+N^k的值, (1的K次方到N的K次方的累加和)。
[C language] break and continue in switch statement
Network layer - routing
Software testers, how can you quickly improve your testing skills? Ten minutes to teach you
Characteristics of ginger
Interview script of Software Test Engineer
随机推荐
关于 uintptr_t和intptr_t 类型
What is the GPM scheduler for go?
Network layer - routing
【.NET+MQTT】.NET6 环境下实现MQTT通信,以及服务端、客户端的双边消息订阅与发布的代码演示
Five high-frequency questions were selected from the 200 questions raised by 3000 test engineers
Self study software testing. To what extent can you go out and find a job?
(Introduction to database system | Wang Shan) Chapter V database integrity: Exercises
MPLS experiment
Design of database table foreign key
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,
Characteristics of ginger
[dynamic programming] leetcode 53: maximum subarray sum
CesiumJS 2022^ 源码解读[8] - 资源封装与多线程
Introduction to thread pool
Analysis and solution of lazyinitializationexception
Future source code view -juc series
Oracle database knowledge points that cannot be learned (II)
MySQL winter vacation self-study 2022 12 (2)
Swagger2 quick start and use
Beijing invites reporters and media