mysql_user EXECUTE ON PROCEDURE

52 views
Skip to first unread message

Lance Onken

unread,
Aug 3, 2016, 1:51:57 PM8/3/16
to Ansible Project
Hello, I'd like to grant EXECUTE ON to a single stored PROCEDURE.

priv=*.*:SELECT/mydb.get_readings:EXECUTE

'Illegal GRANT/REVOKE command; please consult the manual to see which privileges can be used'


MySQL documentation indicates the correct syntax would be:
priv=*.*:SELECT/mydb.get_readings:"EXECUTE ON PROCEDURE"

Which gives the expected error since VALID_PRIVS does not contain "EXECUTE ON PROCEDURE"
"msg": "invalid privileges string: Invalid privileges specified: frozenset(['\"EXECUTE ON PROCEDURE\"'])"

I am able to grant EXECUTE on wildcard:
priv=*.*:SELECT/mydb.*:EXECUTE


Thanks,



Lance Onken

unread,
Aug 4, 2016, 5:47:03 PM8/4/16
to Ansible Project
A Feature Idea Issue has been reported: https://github.com/ansible/ansible-modules-core/issues/4328
Reply all
Reply to author
Forward
0 new messages