mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 02:51:44 +01:00
5a7374d71b
- Don't log connection creation in galera_connect.inc
27 lines
1.3 KiB
Text
27 lines
1.3 KiB
Text
connection node_1;
|
|
CREATE EVENT event1 ON SCHEDULE AT CURRENT_TIMESTAMP + INTERVAL 1 HOUR DO SELECT 1;
|
|
connection node_2;
|
|
SELECT DEFINER= 'root@localhost', ORIGINATOR = 1, STATUS = 'SLAVESIDE_DISABLED', EVENT_TYPE = 'ONE TIME', ON_COMPLETION = 'NOT PRESERVE' FROM INFORMATION_SCHEMA.EVENTS WHERE EVENT_NAME = 'event1';
|
|
DEFINER= 'root@localhost' ORIGINATOR = 1 STATUS = 'SLAVESIDE_DISABLED' EVENT_TYPE = 'ONE TIME' ON_COMPLETION = 'NOT PRESERVE'
|
|
1 1 1 1 1
|
|
connection node_1;
|
|
ALTER EVENT event1 DISABLE;
|
|
connection node_2;
|
|
SELECT DEFINER= 'root@localhost', ORIGINATOR = 1, STATUS = 'SLAVESIDE_DISABLED', EVENT_TYPE = 'ONE TIME', ON_COMPLETION = 'NOT PRESERVE' FROM INFORMATION_SCHEMA.EVENTS WHERE EVENT_NAME = 'event1';
|
|
DEFINER= 'root@localhost' ORIGINATOR = 1 STATUS = 'SLAVESIDE_DISABLED' EVENT_TYPE = 'ONE TIME' ON_COMPLETION = 'NOT PRESERVE'
|
|
1 1 1 1 1
|
|
connection node_2;
|
|
SET GLOBAL event_scheduler = ON;
|
|
CREATE EVENT event2 ON SCHEDULE AT CURRENT_TIMESTAMP ON COMPLETION NOT PRESERVE DO SELECT 1;
|
|
connection node_1;
|
|
SELECT COUNT(*) = 0 FROM INFORMATION_SCHEMA.EVENTS WHERE EVENT_NAME = 'event2';
|
|
COUNT(*) = 0
|
|
1
|
|
connection node_1;
|
|
DROP EVENT event1;
|
|
connection node_2;
|
|
SELECT COUNT(*) = 0 FROM INFORMATION_SCHEMA.EVENTS WHERE EVENT_NAME = 'event1';
|
|
COUNT(*) = 0
|
|
1
|
|
connection node_2;
|
|
SET GLOBAL event_scheduler = OFF;;
|