Re: Stored procedure doesn't work correctly
Hi Peter,
Since MySQL 5.7 do not support creation of roles that we typically assign to users when we create tables.
I'm trying to put the below grant statements in a stored procedure to give the table level privileges when ever I create a new user.
GRANT USAGE ON *.* TO 'ABC123'@'%';
GRANT SELECT ON `%`.* TO 'ABC123'@'%';
GRANT SELECT, REFERENCES ON `Linker_Tracker_Branded`.`EID_Lookup` TO 'ABC123'@'%';
GRANT SELECT, UPDATE (Linker_EID, Decision), REFERENCES (Linker_EID, Decision) ON `Linker_Tracker_Branded`.`Linker_Tracker_ID` TO 'ABC123'@'%';
GRANT SELECT ON `Linker_Tracker_Branded`.`Linker_Tracker_ID_Hist` TO 'ABC123'@'%';
pls advise if there is any alternate option - Thanks
Subject
Views
Written By
Posted
4182
March 03, 2017 09:22PM
668
March 03, 2017 11:06PM
544
March 03, 2017 11:17PM
507
March 04, 2017 12:59AM
Re: Stored procedure doesn't work correctly
627
March 06, 2017 10:33AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.