Solved

MYSQL user permissions to only run stored procedures

Posted on 2011-02-14
1
261 Views
Last Modified: 2012-05-11
I would like to setup my database so specified users can only run stored procedures.  I don't want them to be able to log into the db with a gui and be able to write queries or edit the tables directly.  Also I don't want them to be able to alter the stored procedures.  Is this possible?

Thanks
0
Comment
Question by:mdrapiza
1 Comment
 
LVL 8

Accepted Solution

by:
PranjalShah earned 500 total points
ID: 34892106
I have not tested it but you can try the following... MySQL 5.1.48 and later should work with this.

Create a new database user and gave him permission to execute only one command: EXECUTE.
mysql> GRANT EXECUTE
-> ON database.*
-> TO username@localhost
-> IDENTIFIED BY 'password';
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction In this installment of my SQL tidbits, I will be looking at parsing Extensible Markup Language (XML) directly passed as string parameters to MySQL 5.1.5 or higher. These would be instances where LOAD_FILE (http://dev.mysql.com/doc/refm…
Both Easy and Powerful How easy is PHP? http://lmgtfy.com?q=how+easy+is+php (http://lmgtfy.com?q=how+easy+is+php)  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

863 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now