• Home

  • Custom Ecommerce
  • Application Development
  • Database Consulting
  • Cloud Hosting
  • Systems Integration
  • Legacy Business Systems
  • Security & Compliance
  • GIS

  • Expertise

  • About Us
  • Our Team
  • Clients
  • Blog
  • Careers

  • VisionPort

  • Contact
  • Our Blog

    Ongoing observations by End Point Dev people

    How to Enable MySQL Event Scheduler

    Emanuele “Lele” Calò

    By Emanuele “Lele” Calò
    November 26, 2013

    You may think that you already know what’s the opposite of “DISABLED”, but with MySQL Event Scheduler you’ll be wrong.

    In fact MySQL Event Scheduler may have three different states[1][2]:

    DISABLED -  The Event Scheduler thread does not run [1]. In addition, the Event Scheduler state cannot be changed at runtime.
    OFF (default) - The Event Scheduler thread does not run [1]. When the Event Scheduler is OFF it can be started by setting the value of event_scheduler to ON.
    ON - The Event Scheduler is started; the event scheduler thread runs and executes all scheduled events.
    

    So if you’re going to find it in the DISABLED state and instinctively set it to ENABLED you’ll end up with a non-starting MySQL daemon.

    Be warned and stay safe out there!

    [2]: When the Event Scheduler is not running does not appear in the output of SHOW PROCESSLIST

    database mysql


    Comments