If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Definers on Triggers

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-28-10, 10:17
scottb scottb is offline
Registered User
 
Join Date: Oct 2003
Posts: 60
Definers on Triggers

The developers in my company have done some DB dev and created a number of procedures and triggers which work great, but now I'm ready to move it into a Production environment

For the procedures, I have changed the security to by the Invoker.. This seems simple so I can manage the permissions by granting specific accounts execute, similar to MSSQL.

But what do i do for triggers since the only option is to have use a definer. Do I just compile them as root%localhost or should I make a specific user called like TriggerUser which has select/update/delete/insert on all tables? The 2nd option sounds pretty good now that I type it out.

What are you guys using?
Reply With Quote
  #2 (permalink)  
Old 10-28-10, 11:08
it-iss.com it-iss.com is offline
Registered User
 
Join Date: Sep 2009
Location: San Sebastian, Spain
Posts: 623
A trigger is always linked to a table. So anyone attempting to perform any operation on a table containing triggers will have these automatically invoked. Our policy is to keep these linked with the table owners.
__________________
Ronan Cashell
Senior Oracle/MySQL DBA
http://www.it-iss.com
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On