当前位置:网站首页>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没有起到应有的作用?
边栏推荐
- Unity Shader入门精要读书笔记 第三章 Unity Shader基础
- 不得不会的Oracle数据库知识点(三)
- Analysis: misunderstanding of choosing WMS warehouse management system
- Employees' turnover intention is under the control of the company. After the dispute, the monitoring system developer quietly removed the relevant services
- [common error] custom IP instantiation error
- Global and Chinese market of process beer equipment 2022-2028: Research Report on technology, participants, trends, market size and share
- Global and Chinese markets of distributed control system (DCS) consumption 2022-2028: Research Report on technology, participants, trends, market size and share
- Is it really possible that the monthly salary is 3K and the monthly salary is 15K?
- system. Exit (0) and system exit(1)
- It is worthy of "Alibaba internal software test interview notes" from beginning to end, all of which are essence
猜你喜欢

Eight year test old bird, some suggestions for 1-3 year programmers
![[error record] configure NDK header file path in Visual Studio (three header file paths of NDK | ASM header file path selection related to CPU architecture)](/img/44/aa4963d07d046deb2bc76eb59f8ff7.jpg)
[error record] configure NDK header file path in Visual Studio (three header file paths of NDK | ASM header file path selection related to CPU architecture)

Future source code view -juc series

MPLS experiment

Generic

【.NET+MQTT】.NET6 环境下实现MQTT通信,以及服务端、客户端的双边消息订阅与发布的代码演示

(Introduction to database system | Wang Shan) Chapter V database integrity: Exercises

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

MySQL 8.0.12 error: error 2013 (HY000): lost connection to MySQL server during query

MySQL winter vacation self-study 2022 12 (1)
随机推荐
URL (data:image/png; Base64, ivborw0k... Use case
Global and Chinese markets of distributed control system (DCS) consumption 2022-2028: Research Report on technology, participants, trends, market size and share
不得不会的Oracle数据库知识点(四)
Is it really possible that the monthly salary is 3K and the monthly salary is 15K?
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
From functools import reduce -- see the use of reduce function from typical examples
What is the future of software testing industry? Listen to the test veterans' answers
功能:将主函数中输入的字符串反序存放。例如:输入字符串“abcdefg”,则应输出“gfedcba”。
Global and Chinese market of melting furnaces 2022-2028: Research Report on technology, participants, trends, market size and share
Mobile asynchronous sending SMS verification code solution -efficiency+redis
Eight year test old bird, some suggestions for 1-3 year programmers
[dynamic programming] leetcode 53: maximum subarray sum
[complimentary ppt] kubemeet Chengdu review: make the delivery and management of cloud native applications easier!
数据库表外键的设计
Network layer - routing
OS interrupt mechanism and interrupt handler
Function: store the strings entered in the main function in reverse order. For example, if you input the string "ABCDEFG", you should output "gfedcba".
[error record] configure NDK header file path in Visual Studio
[NLP] text classification still stays at Bert? Duality is too strong than learning framework
Global and Chinese markets for blood and liquid heating devices 2022-2028: Research Report on technology, participants, trends, market size and share