当前位置:网站首页>MySQL uses the view to report an error, explain/show can not be issued; lacking privileges for underlying table
MySQL uses the view to report an error, explain/show can not be issued; lacking privileges for underlying table
2022-07-04 00:50:00 【CSDN Q & A】
There is an employee list staff
Add view , Read only 2 A field
CREATE VIEW staff_view AS SELECT name
,mobile FROM staff;
Add view permissions
GRANT select, SHOW VIEW ON staff_view TO 'test'@'%' IDENTIFIED BY 'test';
When querying the view , Wrong presentation EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
It's said on the Internet because I didn't give staff Table increase select jurisdiction
But isn't one of the functions of view for security , If staff View permission is added to the table , Then just look up the table directly ?staff_view It didn't play its due role ?
边栏推荐
- Pytest unit test framework: simple and easy to use parameterization and multiple operation modes
- The FISCO bcos console calls the contract and reports an error does not exist
- Severity code description the project file line prohibits the display of status error c4996 fopen ('fscanf ', StrCmp): this function or variable may be unsafe The most comprehensive solution
- Swagger2 quick start and use
- Cloud dial test helps Weidong cloud education to comprehensively improve the global user experience
- “疫”起坚守 保障数据中台服务“不打烊”
- MySQL winter vacation self-study 2022 12 (1)
- Global and Chinese markets of distributed control system (DCS) consumption 2022-2028: Research Report on technology, participants, trends, market size and share
- 中电资讯-信贷业务数字化转型如何从星空到指尖?
- STM32 key light
猜你喜欢
Future source code view -juc series
长文综述:大脑中的熵、自由能、对称性和动力学
老姜的特点
Regular expression of shell script value
Celebrate the new year | Suihua fire rescue detachment has wonderful cultural activities during the Spring Festival
1-redis architecture design to use scenarios - four deployment and operation modes (Part 1)
The difference between objects and objects
STM32 key light
功能:求出菲波那契数列的前一项与后一项之比的极限的 近似值。例如:当误差为0.0001时,函数值为0.618056。
CesiumJS 2022^ 源码解读[8] - 资源封装与多线程
随机推荐
(Video + graphics and text) introduction to machine learning series - Chapter 4 naive Bayes
Query efficiency increased by 10 times! Three optimization schemes to help you solve the deep paging problem of MySQL
Characteristics of ginger
Shell script three swordsman sed
Wechat official account and synchronization assistant
Future source code view -juc series
Five high-frequency questions were selected from the 200 questions raised by 3000 test engineers
swagger中响应参数为Boolean或是integer如何设置响应描述信息
[cloud native topic -48]:kubesphere cloud Governance - operation - overview of multi tenant concept
功能:编写函数fun求s=1^k+2^k +3^k + ......+N^k的值, (1的K次方到N的K次方的累加和)。
mysql使用视图报错,EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
The difference between fetchtype lazy and eagle in JPA
From functools import reduce -- see the use of reduce function from typical examples
长文综述:大脑中的熵、自由能、对称性和动力学
Global and Chinese market of underwater bags 2022-2028: Research Report on technology, participants, trends, market size and share
国元证券开户是真的安全可靠吗
Oracle database knowledge points that cannot be learned (II)
1-Redis架构设计到使用场景-四种部署运行模式(上)
leetcode 121 Best Time to Buy and Sell Stock 买卖股票的最佳时机(简单)
7.1 学习内容