Welcome Guest, Not a member yet? Register   Sign In
Community Auth - no grant for TRIGGER
#1

Attempting to set up an application that can be used on any standard web hosting system. Most don't allow TRIGGER as a grant access to mysql. Is there a work around for this statement?

delimiter $$
DROP TRIGGER IF EXISTS ca_passwd_trigger ;
$$
CREATE TRIGGER ca_passwd_trigger BEFORE UPDATE ON users
FOR EACH ROW
BEGIN
    IF ((NEW.passwd <=> OLD.passwd) = 0) THEN
        SET NEW.passwd_modified_at = NOW();
    END IF;
END;$$
delimiter ;
Reply


Messages In This Thread
Community Auth - no grant for TRIGGER - by galisedotes - 02-13-2017, 06:05 AM



Theme © iAndrew 2016 - Forum software by © MyBB