Solved

MYSQL user permissions to only run stored procedures

Posted on 2011-02-14
1
266 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
[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
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 Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

Question has a verified solution.

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

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
This post contains step-by-step instructions for setting up alerting in Percona Monitoring and Management (PMM) using Grafana.
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

690 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