Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2011-02-14
3
Medium Priority
?
2,477 Views
Last Modified: 2012-05-11
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
Comment
Question by:jagku
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 21

Expert Comment

by:K V
ID: 34887244
Try: GRANT EXECUTE ON mydb.* TO 'myuser'@'%';
0
 
LVL 5

Accepted Solution

by:
simonpaul64 earned 2000 total points
ID: 34887273
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
 

Author Closing Comment

by:jagku
ID: 34887321
Thanks, I missed the 'function' keyword!
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
This post looks at MongoDB and MySQL, and covers high-level MongoDB strengths, weaknesses, features, and uses from the perspective of an SQL user.
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question