0

I am trying to do this:

grant select on `mysql`.`proc` to `some_user`%`host`;
grant execute on procedure `database_name`.`get_some_data` to `some_user`@`host`;
flush privileges;

When my application calls, it throws the following error:

 org.hibernate.util.JDBCExceptionReporter - execute command denied to user 'some_user'@'142.24.%.%' for routine 'database_name.get_some_data' at
 com.lsa.nameless.dao.AnalyticsDao.callStoredProcedure(AnalyticsDao.java:43)
 at com.lsa.nameless.service.AnalyticsService.findBrandPerformanceData(AnalyticsService.java:1672) 
 at com.lsa.nameless.action.AnalyticsAction.showPage(AnalyticsAction.java:240)

When I do execute show grants for user@host, I do see that I the user actually has privileges to execute the procedures and functions.

I have also tried granting privileges on procedures and functions separately. Still, not working.

Neil Stockton
  • 11,383
  • 3
  • 34
  • 29
MontyPython
  • 2,906
  • 11
  • 37
  • 58

0 Answers0