You need to use another separator correctly, for example:
DROP EVENT IF EXISTS `Daily Event`; DELIMITER $$ CREATE DEFINER=`root`@`localhost` EVENT `Daily event` ON SCHEDULE EVERY 1 DAY STARTS '2015-03-06 00:30:00' ON COMPLETION PRESERVE ENABLE DO BEGIN -- Newly due summary sheets UPDATE `summaries` SET `status` = 'DUE' WHERE `status` = 'OPEN' AND NOW() >= LAST_DAY(CONCAT(`year`, '-', `month`, '-01')); -- Alert user that didn't clock out INSERT INTO `alerts` (`from`, `to`, `subject`, `message`) SELECT ....; -- Alert manager that didn't clock out INSERT INTO `alerts` (`from`, `to`, `subject`, `message`) SELECT ....; -- Alert for stale tickets INSERT INTO `alerts` (`from`, `to`, `subject`, `message`) SELECT ....; END; $$;
source share