Solved

MYSQL user permissions to only run stored procedures

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

All XML, All the Time; More Fun MySQL Tidbits – Dynamically Generate XML via Stored Procedure in MySQL Extensible Markup Language (XML) and database systems, a marriage we are seeing more and more of.  So the topics of parsing and manipulating XM…
Foreword This article was written many years ago, in the days when PHP supported the MySQL extension (http://php.net/manual/en/function.mysql-connect.php).  Today (http://php.net/manual/en/migration70.removed-exts-sapis.php) you would not use MySQL…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

790 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