Solved

MYSQL user permissions to only run stored procedures

Posted on 2011-02-14
1
258 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

As a database administrator, you may need to audit your table(s) to determine whether the data types are optimal for your real-world data needs.  This Article is intended to be a resource for such a task. Preface The other day, I was involved …
I have been using r1soft Continuous Data Protection (http://www.r1soft.com/linux-cdp/) for many years now with the mySQL Addon and wanted to share a trick I have used several times. For those of us that don't have the luxury of using all transact…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

744 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

11 Experts available now in Live!

Get 1:1 Help Now