我是靠谱客的博主 温婉白昼,这篇文章主要介绍mysql command denied_MySQL:select command denied to user for table 'proc'案例,现在分享给大家,希望可以做个参考。

使用EMS MySQL Manager Pro(3.4.0.1)连接MySQL 5.6.20时,报错:“SELECT command denied to user xxx@xxx.xxx.xxx.xxx for table 'proc'

065fcfcc4413d445cad963f38af20050.png

很是纳闷,后面使用同样的权限,发现使用命令工具mysql -h xxxx -u username -p连接时不会报错。个人猜测是因为EMS MySQL Manager(3.4.0.1)连接数据库时,会去查询mysql.proc表获取相关的对象(存储过程、函数等)。于是在测试服务器开启了MySQL查询日志,然后在客户端电脑使用EMS MySQL Manager Pro连接到数据库(Connect to Database),然后检查查询日志具体信息,发现如下所示,EMS MySQL Manager连接数据库时确实会去查询mysql.proc, 而因为权限问题,所以报如上错误:

#tail -60f /var/lib/mysql/mytestlnx02.log

/usr/sbin/mysqld, Version: 5.6.41 (MySQL Community Server (GPL)). started with:

Tcp port: 3306  Unix socket: /var/lib/mysql/mysql.sock

Time                 Id Command    Argument

190108 14:54:07   111 Connect   my

最后

以上就是温婉白昼最近收集整理的关于mysql command denied_MySQL:select command denied to user for table 'proc'案例的全部内容,更多相关mysql内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(124)

评论列表共有 0 条评论

立即
投稿
返回
顶部