php - execute command denied to user readonlyuser -


although localhost has execute permission, i'm getting error below when run query in web application. did solves problem of other users in , other forums reason doesn't solve mine unless i'm missing something.

note: when run same query in navicat or anywhere else, works fine.

is there else solve problem?

thanks

query:

select get_balance('$deadline', '$id') balance, allow_submission('$id', '$term') on dual 

error:

execute command denied user 'readonlyuser'@'localhost' routine 'mydb.allow_submission' 

what did: in navicat gui , linux terminal root , superuser.

grant execute on procedure mydb.allow_submission 'readonlyuser'@'localhost'; 

as passing parameters allow_submission, think, it's function, not procedure.

try this:

grant execute on function mydb.allow_submission 'readonlyuser'@'localhost'; 

Comments

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -