当前位置:网站首页>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 01:29: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沒有起到應有的作用?
边栏推荐
- Remember a lazy query error
- Network layer - routing
- Print diamond pattern
- Huawei BFD and NQA
- Introduction to Tianchi news recommendation: 4 Characteristic Engineering
- 【.NET+MQTT】.NET6 环境下实现MQTT通信,以及服务端、客户端的双边消息订阅与发布的代码演示
- 机器学习基础:用 Lasso 做特征选择
- Long article review: entropy, free energy, symmetry and dynamics in the brain
- 机器学习基础:用 Lasso 做特征选择
- Decompile and modify the non source exe or DLL with dnspy
猜你喜欢
Release and visualization of related data
Do you know the eight signs of a team becoming agile?
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.
Unity Shader入门精要读书笔记 第三章 Unity Shader基础
Employees' turnover intention is under the control of the company. After the dispute, the monitoring system developer quietly removed the relevant services
It's OK to have hands-on 8 - project construction details 3-jenkins' parametric construction
Hbuilder link Xiaoyao simulator
1-redis architecture design to use scenarios - four deployment and operation modes (Part 1)
CLP information - how does the digital transformation of credit business change from star to finger?
ES6 deletes an attribute in all array objects through map, deconstruction and extension operators
随机推荐
HackTheBox-baby breaking grad
Functions and arrays of shell scripts
Query efficiency increased by 10 times! Three optimization schemes to help you solve the deep paging problem of MySQL
技術實踐|線上故障分析及解决方法(上)
TP5 automatic registration hook mechanism hook extension, with a complete case
Pratique technique | analyse et solution des défaillances en ligne (Partie 1)
Design of database table foreign key
Flutter local database sqflite
Decompile and modify the non source exe or DLL with dnspy
Cloud dial test helps Weidong cloud education to comprehensively improve the global user experience
Technical practice online fault analysis and solutions (Part 1)
基于.NetCore开发博客项目 StarBlog - (14) 实现主题切换功能
Remember a lazy query error
长文综述:大脑中的熵、自由能、对称性和动力学
Employees' turnover intention is under the control of the company. After the dispute, the monitoring system developer quietly removed the relevant services
51 MCU external interrupt
Query efficiency increased by 10 times! Three optimization schemes to help you solve the deep paging problem of MySQL
GUI 应用:socket 网络聊天室
C import Xls data method summary I (upload files and create Workbooks)
使用dnSpy对无源码EXE或DLL进行反编译并且修改