I try create trigger
CREATE TRIGGER `aster_users2` after update ON `aster_users` FOR EACH ROW BEGIN update event set flag=1 where id=1; END;
Delimiters should be used.
DELIMITER $$ CREATE TRIGGER `aster_users2` AFTER UPDATE ON `aster_users` FOR EACH ROW BEGIN UPDATE event SET flag = 1 WHERE id = 1; END$$ DELIMITER ;