Commit 6c9a6bad authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

MDEV-19262 Server error message is unclear if event is created and event_scheduler = DISABLED

Change error message.
parent e116f11f
...@@ -20,25 +20,25 @@ select @@event_scheduler; ...@@ -20,25 +20,25 @@ select @@event_scheduler;
@@event_scheduler @@event_scheduler
OFF OFF
show events; show events;
ERROR HY000: Cannot proceed because system tables used by Event Scheduler were found damaged at server start ERROR HY000: Cannot proceed, because event scheduler is disabled
select event_name from information_schema.events; select event_name from information_schema.events;
ERROR HY000: Cannot proceed because system tables used by Event Scheduler were found damaged at server start ERROR HY000: Cannot proceed, because event scheduler is disabled
show create event intact_check; show create event intact_check;
ERROR HY000: Cannot proceed because system tables used by Event Scheduler were found damaged at server start ERROR HY000: Cannot proceed, because event scheduler is disabled
drop event no_such_event; drop event no_such_event;
ERROR HY000: Cannot proceed because system tables used by Event Scheduler were found damaged at server start ERROR HY000: Cannot proceed, because event scheduler is disabled
create event intact_check_1 on schedule every 5 hour do select 5; create event intact_check_1 on schedule every 5 hour do select 5;
ERROR HY000: Cannot proceed because system tables used by Event Scheduler were found damaged at server start ERROR HY000: Cannot proceed, because event scheduler is disabled
alter event intact_check_1 on schedule every 8 hour do select 8; alter event intact_check_1 on schedule every 8 hour do select 8;
ERROR HY000: Cannot proceed because system tables used by Event Scheduler were found damaged at server start ERROR HY000: Cannot proceed, because event scheduler is disabled
alter event intact_check_1 rename to intact_check_2; alter event intact_check_1 rename to intact_check_2;
ERROR HY000: Cannot proceed because system tables used by Event Scheduler were found damaged at server start ERROR HY000: Cannot proceed, because event scheduler is disabled
drop event intact_check_1; drop event intact_check_1;
ERROR HY000: Cannot proceed because system tables used by Event Scheduler were found damaged at server start ERROR HY000: Cannot proceed, because event scheduler is disabled
drop event intact_check_2; drop event intact_check_2;
ERROR HY000: Cannot proceed because system tables used by Event Scheduler were found damaged at server start ERROR HY000: Cannot proceed, because event scheduler is disabled
drop event intact_check; drop event intact_check;
ERROR HY000: Cannot proceed because system tables used by Event Scheduler were found damaged at server start ERROR HY000: Cannot proceed, because event scheduler is disabled
set global event_scheduler=on; set global event_scheduler=on;
ERROR HY000: Event Scheduler: An error occurred when initializing system tables. Disabling the Event Scheduler. ERROR HY000: Event Scheduler: An error occurred when initializing system tables. Disabling the Event Scheduler.
set global event_scheduler=off; set global event_scheduler=off;
......
...@@ -5972,8 +5972,8 @@ ER_EVENT_RECURSION_FORBIDDEN ...@@ -5972,8 +5972,8 @@ ER_EVENT_RECURSION_FORBIDDEN
eng "Recursion of EVENT DDL statements is forbidden when body is present" eng "Recursion of EVENT DDL statements is forbidden when body is present"
ger "Rekursivität von EVENT-DDL-Anweisungen ist unzulässig wenn ein Hauptteil (Body) existiert" ger "Rekursivität von EVENT-DDL-Anweisungen ist unzulässig wenn ein Hauptteil (Body) existiert"
ER_EVENTS_DB_ERROR ER_EVENTS_DB_ERROR
eng "Cannot proceed because system tables used by Event Scheduler were found damaged at server start" eng "Cannot proceed, because event scheduler is disabled"
ger "Kann nicht weitermachen, weil die Tabellen, die von Events verwendet werden, beim Serverstart als beschädigt markiert wurden" ger "Die Operation kann nicht fortgesetzt werden, da Event Scheduler deaktiviert ist."
ER_ONLY_INTEGERS_ALLOWED ER_ONLY_INTEGERS_ALLOWED
eng "Only integers allowed as number here" eng "Only integers allowed as number here"
ger "An dieser Stelle sind nur Ganzzahlen zulässig" ger "An dieser Stelle sind nur Ganzzahlen zulässig"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment