当前位置:网站首页>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沒有起到應有的作用?
边栏推荐
- MySQL uses the view to report an error, explain/show can not be issued; lacking privileges for underlying table
- Make drop-down menu
- 【.NET+MQTT】.NET6 环境下实现MQTT通信,以及服务端、客户端的双边消息订阅与发布的代码演示
- 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,
- Future source code view -juc series
- About uintptr_ T and IntPtr_ T type
- Is Shengang securities company as safe as other securities companies
- Openbionics exoskeleton project introduction | bciduino community finishing
- Conditional test, if, case conditional test statements of shell script
- A little understanding of GSLB (global server load balance) technology
猜你喜欢

Lightweight Pyramid Networks for Image Deraining

Force buckle day32

Infiltration learning diary day19

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.

51 MCU external interrupt

Conditional test, if, case conditional test statements of shell script

Mobile asynchronous sending SMS verification code solution -efficiency+redis

2-redis architecture design to use scenarios - four deployment and operation modes (Part 2)

String hash, find the string hash value after deleting any character, double hash

GUI application: socket network chat room
随机推荐
Openbionics robot project introduction | bciduino community finishing
Related configuration commands of Huawei rip
ThinkPHP uses redis to update database tables
Some other configurations on Huawei's spanning tree
Oracle database knowledge points that cannot be learned (II)
LeetCode226. Flip binary tree
Summary of JWT related knowledge
Gnupg website
Technical practice online fault analysis and solutions (Part 1)
Cloud dial test helps Weidong cloud education to comprehensively improve the global user experience
Delete all elements with a value of Y. The values of array elements and y are entered by the main function through the keyboard.
Who moved my code!
Maximum likelihood method, likelihood function and log likelihood function
Introduction to A-frame virtual reality development
我管你什么okr还是kpi,PPT轻松交给你
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,
C library function int fprintf (file *stream, const char *format,...) Send formatted output to stream
Introduction to Tianchi news recommendation: 4 Characteristic Engineering
MPLS③
Huawei rip and BFD linkage