An user should only execute functions and procedures. I grant EXECUTE
to this user and revoke other privileges from the same user for security reasons.
How to check if this user has only the EXECUTE
privilege for a stored function?
An user should only execute functions and procedures. I grant EXECUTE
to this user and revoke other privileges from the same user for security reasons.
How to check if this user has only the EXECUTE
privilege for a stored function?
SHOW GRANTS FOR '<user>'@'<host>'
shows the grants for user. You can check user's grants.
SELECT * FROM mysql.procs_priv WHERE Proc_priv='Execute' AND Routine_type='PROCEDURE' AND Routine_name='<routine_name>' AND User='<user>' Db='<db_name>' AND Host='<host>';
Db and Host may not be necessary