mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 14:02:32 +01:00
245b9ad4b3
mysql-test/extra/rpl_tests/rpl_row_func003.test: Fix spelling error mysql-test/extra/rpl_tests/rpl_row_tabledefs.test: Restore sql_mode after test mysql-test/r/events_logs_tests.result: Turn even_scheduleroff before test ends mysql-test/r/events_scheduling.result: Turn even_scheduleroff before test ends mysql-test/r/insert.result: Drop tables t1 before test ends mysql-test/r/rpl_read_only.result: Set read_only flag back to default mysql-test/r/rpl_row_NOW.result: Drop database mysqltest1 before test ends mysql-test/r/rpl_row_USER.result: Drop users created by test mysql-test/r/rpl_row_basic_11bugs.result: Drop table and set query_cache_size back to default mysql-test/r/rpl_row_func002.result: Drop table created by test mysql-test/r/rpl_row_sp008.result: Drop table created by test mysql-test/r/rpl_row_sp012.result: Drop user created by test mysql-test/r/rpl_row_tabledefs_2myisam.result: Restore sql_mode mysql-test/r/rpl_row_tabledefs_3innodb.result: Restore sql_mode mysql-test/r/rpl_row_tabledefs_7ndb.result: Restore sql_mode mysql-test/r/rpl_row_view01.result: Drop database created by test mysql-test/r/rpl_slave_status.result: Remove created users mysql-test/r/rpl_switch_stm_row_mixed.result: Reset binlog_format to default mysql-test/r/sp.result: Drop procedure created by test mysql-test/r/varbinary.result: Drop table created by test mysql-test/r/variables.result: Reset changed variables to their defaults mysql-test/t/events_logs_tests.test: Turn off event_scheduler before test ends mysql-test/t/events_scheduling.test: Turn off event_scheduler mysql-test/t/insert.test: Drop table created by test mysql-test/t/rpl_read_only.test: Reset read_only flag mysql-test/t/rpl_row_NOW.test: Drop db created by test mysql-test/t/rpl_row_USER.test: Drop users created mysql-test/t/rpl_row_basic_11bugs.test: Drop tables created by test mysql-test/t/rpl_row_func002.test: Drop table created by test mysql-test/t/rpl_row_sp008.test: Drop table created by test mysql-test/t/rpl_row_sp012.test: Drop user created by test mysql-test/t/rpl_row_view01.test: Drop db created by test mysql-test/t/rpl_slave_status.test: Remove users created by test mysql-test/t/rpl_switch_stm_row_mixed.test: Reset binlog_format mysql-test/t/sp.test: Drop procedure created by test mysql-test/t/varbinary.test: Drop tables created by test mysql-test/t/variables.test: Restore variables to their default before test ends
38 lines
1.1 KiB
Text
38 lines
1.1 KiB
Text
stop slave;
|
|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
|
reset master;
|
|
reset slave;
|
|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
|
start slave;
|
|
DROP DATABASE IF EXISTS mysqltest1;
|
|
CREATE DATABASE mysqltest1;
|
|
CREATE USER tester IDENTIFIED BY 'test';
|
|
GRANT ALL ON mysqltest1.* TO 'tester'@'%' IDENTIFIED BY 'test';
|
|
GRANT ALL ON mysqltest1.* TO ''@'localhost%';
|
|
FLUSH PRIVILEGES;
|
|
CREATE TABLE mysqltest1.t1 (a INT, users VARCHAR(255), PRIMARY KEY(a));
|
|
INSERT INTO mysqltest1.t1 VALUES(1,USER());
|
|
INSERT INTO mysqltest1.t1 VALUES(2,CURRENT_USER());
|
|
create procedure mysqltest1.p1()
|
|
begin
|
|
INSERT INTO mysqltest1.t1 VALUES(3,USER());
|
|
INSERT INTO mysqltest1.t1 VALUES(4,CURRENT_USER());
|
|
end|
|
|
CALL mysqltest1.p1();
|
|
SELECT * FROM mysqltest1.t1 ORDER BY a;
|
|
a users
|
|
1 tester@localhost
|
|
2 @localhost%
|
|
3 tester@localhost
|
|
4 @localhost%
|
|
SELECT * FROM mysqltest1.t1 ORDER BY a;
|
|
a users
|
|
1 tester@localhost
|
|
2 @localhost%
|
|
3 tester@localhost
|
|
4 @localhost%
|
|
DROP DATABASE mysqltest1;
|
|
REVOKE ALL ON mysqltest1.* FROM 'tester'@'%';
|
|
REVOKE ALL ON mysqltest1.* FROM ''@'localhost%';
|
|
DROP USER tester@'%';
|
|
DROP USER ''@'localhost%';
|