event_scheduler¶
MatrixOne does not support the MySQL
CREATE EVENTstatement or the event scheduling subsystem. Theevent_schedulersystem variable exists for MySQL compatibility but always returnsDISABLED, indicating that event execution is not available in MatrixOne. This variable is read-only and its value cannot be changed.
The event_scheduler system variable indicates whether the MySQL Event Scheduler is enabled. In
MatrixOne, CREATE EVENT and event scheduling are not supported, so this variable always returns
DISABLED.
Syntax¶
Query the event_scheduler variable:
SHOW VARIABLES LIKE 'event_scheduler';
SELECT @@event_scheduler;
SELECT @@global.event_scheduler;
The variable cannot be set — it is read-only and always returns DISABLED.
Arguments¶
Property |
Value |
|---|---|
Variable Type |
|
Scope |
|
Dynamic |
|
Default Value |
|
Optional Value |
|
Examples¶
DROP DATABASE IF EXISTS event_scheduler_demo;
CREATE DATABASE event_scheduler_demo;
USE event_scheduler_demo;
SHOW VARIABLES LIKE 'event_scheduler';
SELECT @@event_scheduler;
SELECT @@global.event_scheduler;
DROP DATABASE event_scheduler_demo;
The output will show DISABLED for all three queries:
Variable_name | Value
event_scheduler | DISABLED
Constraints¶
MatrixOne does not support
CREATE EVENTor event scheduling. Theevent_schedulersystem variable is read-only and always returnsDISABLED.Setting
event_schedulerto any other value has no effect.