Me estaba viniendo a la memoria que hace tiempo atrás hubo un tema sobre problemas con trigers, pero no logro recordar el porque no se podía. Así que hay que buscar en la fuente:
Spoiler:
Note: Prior to MySQL 5.1.6, CREATE TRIGGER always requires the SUPER privilege, so only the second of the preceding rules applies.MySQL takes the DEFINER user into account when checking trigger privileges as follows:At CREATE TRIGGER time, the user who issues the statement must have the TRIGGER privilege. (SUPER prior to MySQL 5.1.6.)At trigger activation time, privileges are checked against the DEFINER user. This user must have these privileges:The TRIGGER privilege. (SUPER prior to MySQL 5.1.6.)The SELECT privilege for the subject table if references to table columns occur using OLD.col_name or NEW.col_name in the trigger definition.The UPDATE privilege for the subject table if table columns are targets of SET NEW.col_name = value assignments in the trigger definition.Whatever other privileges normally are required for the statements executed by the trigger.For more information about trigger security, see Section 18.6, Access Control for Stored Programs and Views.
ok muxas gracias, ahora creo, no lo se, el trigger se rige bajo una tabla en mysql si yo creo esa tabla para no asi acceder a ella bajo super tu crees que servira.
Se me ocurre, y todo depende de si tienes control y programas codigo Php, incluir la tabla (= estructura o adaptada) y lanzar la inserción de registros desde Php (luego de la actualizacion del registro), entonces quedaría como un registro de cambios.
ATENCIÓN: Este tema no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un nuevo tema en lugar de responder al actual
TU NO PUEDES Escribir nuevos temas en este foro TU NO PUEDES Responder a los temas en este foro TU NO PUEDES Editar tus propios mensajes en este foro TU NO PUEDES Borrar tus propios mensajes en este foro