概述
今天主要分享下关于performance_schema/information_schema授权问题,最近在对performance_schema授权时发现了一个比较有趣的现象,下面一起来看看吧~
![4456792d3ff18ba0cdb2ee4a5c91965f.png](https://i-blog.csdnimg.cn/blog_migrate/1d83a10c2f9a2b3ef5cf285ba588c789.jpeg)
1、查看授权
这里可以看到root@'%'没有with grant option权限
![ec23285fb391e0245bd98ecc67326ceb.png](https://i-blog.csdnimg.cn/blog_migrate/81f99a1895ed4377168dbf72641704f7.jpeg)
mysql日志如下:
![5875dccd35ad314f2ab9b3bd59496303.png](https://i-blog.csdnimg.cn/blog_migrate/a8c2396e41452702ad0868747ee0678a.jpeg)
2、查看mysql.user表
mysql> select host,user,Grant_priv,authentication_string,password_expi
今天主要分享下关于performance_schema/information_schema授权问题,最近在对performance_schema授权时发现了一个比较有趣的现象,下面一起来看看吧~
这里可以看到root@'%'没有with grant option权限
mysql日志如下:
mysql> select host,user,Grant_priv,authentication_string,password_expi