| 1 |
# Can't test with embedded server that doesn't support grants |
| 2 |
-- source include/not_embedded.inc |
| 3 |
call mtr.add_suppression("Event Scheduler will not function when starting with --skip-grant-tables"); |
| 4 |
|
| 5 |
--echo # |
| 6 |
--echo # MDEV-29827 Misleading error messages about event scheduler when using --skip-grant-tables |
| 7 |
--echo # |
| 8 |
|
| 9 |
# Verify that if server is started with |
| 10 |
# --event-scheduler=ON --skip-grant-tables, we get an error |
| 11 |
# with a distinct explanation that the latter disables the former. |
| 12 |
|
| 13 |
let SEARCH_FILE=$MYSQLTEST_VARDIR/log/mysqld.1.err; |
| 14 |
let SEARCH_PATTERN=Event Scheduler will not function when starting with --skip-grant-tables; |
| 15 |
source include/search_pattern_in_file.inc; |
| 16 |
|
| 17 |
--error ER_OPTION_PREVENTS_STATEMENT |
| 18 |
CREATE EVENT test ON SCHEDULE AT CURRENT_TIMESTAMP DO DO NULL; |
| 19 |
|
| 20 |
# Although --event-scheduler=ON was specified (see -master.opt), it should |
| 21 |
# have been changed to 'DISABLED' at startup. |
| 22 |
select (@@global.event_scheduler='DISABLED') as expect_1; |
| 23 |
|
| 24 |
# Verify that we cannot (re)enable event scheduler |
| 25 |
--error ER_OPTION_PREVENTS_STATEMENT |
| 26 |
set global event_scheduler=1; |