Bug #92278 | Failed to fetch table privileges for particular user via getTablePriviliges() | ||
---|---|---|---|
Submitted: | 4 Sep 2018 5:07 | Modified: | 6 Sep 2018 4:51 |
Reporter: | Charchit Patodi | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | Connector / J | Severity: | S1 (Critical) |
Version: | OS: | Any | |
Assigned to: | CPU Architecture: | Any |
[4 Sep 2018 5:07]
Charchit Patodi
[5 Sep 2018 13:02]
MySQL Verification Team
Hello Charchit, We're sorry, but the bug system is not the appropriate forum for asking help on using MySQL products. Your problem is not the result of a bug. Imho this is not a bug, if you see the error message i.e "SELECT command denied to user 'userb'@'10.80.112.32' for table 'tables_priv'" - it is pretty clear that 'userb' don't have select privileges on mysql.tables_priv table. I suggest you either add this privileges to user or try with another user which has these permissions. Support on using our products is available both free in our forums at http://forums.mysql.com/ and for a reasonable fee direct from our skilled support engineers at http://www.mysql.com/support/ Thank you for your interest in MySQL. regards, Umesh
[6 Sep 2018 4:51]
Charchit Patodi
Hi Umesh, Could you please help in how to give permission to users. As getTablePrivileges() is JDBC API, it is working with other databases but only failing in case of MySQL. Could you please check why this JDBC API is failing to fetch result. As we already tried with different users but for all it got failed. we also tried with "root" user but even root did not succeed. We also tried to give permission to various user to this table but that also failed. Thanks and Regards, Charchit Patodi.