mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 06:44:16 +01:00
a591514a67
into mysql_cab_desk.:C:/source/c++/mysql-5.1-new-rpl
19 lines
1.1 KiB
Text
19 lines
1.1 KiB
Text
# Can't test with embedded server that doesn't support grants
|
|
-- source include/not_embedded.inc
|
|
|
|
--disable_warnings
|
|
create database if not exists mysqltest_events_test;
|
|
--enable_warnings
|
|
|
|
use mysqltest_events_test;
|
|
set global event_scheduler=off;
|
|
create table execution_log(name char(10));
|
|
create event abc1 on schedule every 1 second do insert into execution_log value('abc1');
|
|
create event abc2 on schedule every 1 second do insert into execution_log value('abc2');
|
|
create event abc3 on schedule every 1 second do insert into execution_log value('abc3');
|
|
--sleep 1.5
|
|
select name from execution_log;
|
|
|
|
insert into mysql.event values ('db1','bad','select 42','root@localhost',NULL,1000,'MICROSECOND','2006-05-05 17:39:11','2006-05-05 17:39:20','2016-05-05 15:39:24','2016-05-05 15:39:11',NULL,'ENABLED','DROP','','comment1',1,'SYSTEM');
|
|
insert into mysql.event values ('db1','bad2','sect','root@localhost',NULL,1000,'SECOND','2006-05-05 17:39:11','2006-05-05 17:39:20','2016-05-05 15:39:24','2016-05-05 15:39:11',NULL,'ENABLED','DROP','','comment2',1,'SYSTEM');
|
|
--echo "Now we restart the server"
|