
- Learn MySQL
- MySQL - Home
- MySQL - Introduction
- MySQL - Installation
- MySQL - Administration
- MySQL - PHP Syntax
- MySQL - Connection
- MySQL - Create Database
- MySQL - Drop Database
- MySQL - Select Database
- MySQL - Data Types
- MySQL - Create Tables
- MySQL - Drop Tables
- MySQL - Insert Query
- MySQL - Select Query
- MySQL - Where Clause
- MySQL - Update Query
- MySQL - Delete Query
- MySQL - Like Clause
- MySQL - Sorting Results
- MySQL - Using Join
- MySQL - NULL Values
- MySQL - Regexps
- MySQL - Transactions
- MySQL - Alter Command
- MySQL - Indexes
- MySQL - Temporary Tables
- MySQL - Clone Tables
- MySQL - Database Info
- MySQL - Using Sequences
- MySQL - Handling Duplicates
- MySQL - SQL Injection
- MySQL - Database Export
- MySQL - Database Import
How can we start MySQL event scheduler?
Actually, MySQL event scheduler is a process that runs in the background and constantly looks for the events to execute. But before we create or schedule an event we just have to start the scheduler. It can start with the help of the following statement −
mysql> SET GLOBAL event_scheduler = ON; Query OK, 0 rows affected (0.07 sec)
Now with the help of the following statement, we can check its status in MySQL process list −
mysql> SHOW PROCESSLIST\G *************************** 1. row *************************** Id: 3 User: root Host: localhost:49500 db: query Command: Query Time: 0 State: starting Info: SHOW PROCESSLIST *************************** 2. row *************************** Id: 4 User: event_scheduler Host: localhost db: NULL Command: Daemon Time: 11 State: Waiting on empty queue Info: NULL 2 rows in set (0.06 sec)
It can be turn off with the help of the following statement −
mysql> SET GLOBAL event_scheduler = OFF; Query OK, 0 rows affected (0.07 sec)
- Related Articles
- How can we modify an existing MySQL event?
- How can we RENAME an existing MySQL event?
- Event scheduler in Python
- How can we delete an existing MySQL event permanently?
- How can we perform START transactions inside MySQL stored procedure?
- How can we ENABLE AND DISABLE a particular MySQL event?
- How can we create a MySQL one-time event that executes immediately?
- How can I start MySQL Server?
- How can we get the count of all MySQL event-related operations collectively?
- How to start the specific task of the task scheduler using PowerShell?
- How can a user start new MySQL transaction?
- How can we create multiple MySQL triggers for the same trigger event and action time?
- How can we create a MySQL one-time event that executes after some specified time interval?
- How can we customize the start of JShell in Java 9?
- Can we override a start() method in Java?

Advertisements