1 drop database if exists events_test;
2 drop database if exists mysqltest_db2;
3 create database events_test;
5 grant create, insert, select, delete on mysqltest_db2.*
6 to mysqltest_user1@localhost;
7 create database mysqltest_db2;
12 create table t1 (a varchar(255)) engine=innodb;
14 insert into t1 (a) values ("OK: create event: insufficient privileges");
15 create event e1 on schedule every 1 day do select 1;
16 ERROR 42000: Access denied for user 'mysqltest_user1'@'localhost' to database 'mysqltest_db2'
20 OK: create event: insufficient privileges
24 insert into t1 (a) values ("OK: alter event: insufficient privileges");
25 alter event e1 on schedule every 1 day do select 1;
26 ERROR 42000: Access denied for user 'mysqltest_user1'@'localhost' to database 'mysqltest_db2'
30 OK: alter event: insufficient privileges
34 insert into t1 (a) values ("OK: drop event: insufficient privileges");
36 ERROR 42000: Access denied for user 'mysqltest_user1'@'localhost' to database 'mysqltest_db2'
40 OK: drop event: insufficient privileges
43 drop user mysqltest_user1@localhost;
44 drop database mysqltest_db2;
45 drop database events_test;