January 2018
Intermediate to advanced
446 pages
12h 57m
English
Just like a cron on a Linux server, MySQL has EVENTS to handle the scheduled tasks. MySQL uses a special thread called the event schedule thread to execute all scheduled events. By default, the event scheduler thread is not enabled (version < 8.0.3), to enable it, execute:
mysql> SET GLOBAL event_scheduler = ON;