Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2835
  • Last Modified:

Getting ERROR 1144 (42000) when granting execute to a user

Hi Experts,

I am trying to exucute the following command to grant execute privs for a procedure.

GRANT EXECUTE ON mydb.UPDATE_LINE_ITEMS TO 'myuser'@'%';

However, I get the following error:

ERROR 1144 (42000): Illegal GRANT/REVOKE command; please consult the manual to see which privileges can be used


What am I doing wrong?

Thanks
0
jagku
Asked:
jagku
1 Solution
 
theGhost_k8Database ConsultantCommented:
Try: GRANT EXECUTE ON mydb.* TO 'myuser'@'%';
0
 
simonpaul64Commented:
Execute is not implemented until MySQL 5.0.3

After that version you should be able to do this:-

GRANT EXECUTE ON  function mydb.UPDATE_LINE_ITEMS TO 'myuser'@'%';
0
 
jagkuAuthor Commented:
Thanks, I missed the 'function' keyword!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now