1 include/master-slave.inc
3 DROP DATABASE IF EXISTS mysqltest1;
4 CREATE DATABASE mysqltest1;
5 CREATE USER tester IDENTIFIED BY 'test';
6 GRANT ALL ON mysqltest1.* TO 'tester'@'%' IDENTIFIED BY 'test';
7 GRANT ALL ON mysqltest1.* TO ''@'localhost%';
9 CREATE TABLE mysqltest1.t1 (a INT, users VARCHAR(255), PRIMARY KEY(a));
10 INSERT INTO mysqltest1.t1 VALUES(1,USER());
11 INSERT INTO mysqltest1.t1 VALUES(2,CURRENT_USER());
12 create procedure mysqltest1.p1()
14 INSERT INTO mysqltest1.t1 VALUES(3,USER());
15 INSERT INTO mysqltest1.t1 VALUES(4,CURRENT_USER());
18 SELECT * FROM mysqltest1.t1 ORDER BY a;
24 SELECT * FROM mysqltest1.t1 ORDER BY a;
30 DROP DATABASE mysqltest1;
31 REVOKE ALL ON mysqltest1.* FROM 'tester'@'%';
32 REVOKE ALL ON mysqltest1.* FROM ''@'localhost%';
34 DROP USER ''@'localhost%';