summaryrefslogtreecommitdiff
path: root/mysql-test/main/events_skip_grant_tables.test
blob: b19178294b840b9a3194dac48dd90f3130fc9ae2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Can't test with embedded server that doesn't support grants
-- source include/not_embedded.inc
call mtr.add_suppression("Event Scheduler will not function when starting with --skip-grant-tables or --bootstrap.");

# [MARIADB-29827] Verify that if server is started with
# --event-scheduler=ON --skip-grant-tables, we get an error
# with a distinct explanation that the latter disables the former.

--error ER_EVENTS_NO_ACL
CREATE EVENT test ON SCHEDULE AT CURRENT_TIMESTAMP DO DO NULL;

# Although --event-scheduler=ON was specified (see -master.opt), it should
# have been changed to 'DISABLED' at startup.
select (@@global.event_scheduler='DISABLED') as expect_1;

# Verify that we cannot (re)enable event scheduler
--error ER_OPTION_PREVENTS_STATEMENT
set global event_scheduler=1;