diff options
Diffstat (limited to 'mysql-test/suite/rpl/r/rpl_grant.result')
-rw-r--r-- | mysql-test/suite/rpl/r/rpl_grant.result | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/mysql-test/suite/rpl/r/rpl_grant.result b/mysql-test/suite/rpl/r/rpl_grant.result new file mode 100644 index 00000000..274a8505 --- /dev/null +++ b/mysql-test/suite/rpl/r/rpl_grant.result @@ -0,0 +1,41 @@ +include/master-slave.inc +[connection master] +connection master; +CREATE USER dummy@localhost; +CREATE USER dummy1@localhost, dummy2@localhost; +SELECT user, host FROM mysql.user WHERE user like 'dummy%'; +User Host +dummy localhost +dummy1 localhost +dummy2 localhost +SELECT COUNT(*) FROM mysql.user WHERE user like 'dummy%'; +COUNT(*) +3 +connection slave; +**** On Slave **** +SELECT user,host FROM mysql.user WHERE user like 'dummy%'; +User Host +dummy localhost +dummy1 localhost +dummy2 localhost +SELECT COUNT(*) FROM mysql.user WHERE user like 'dummy%'; +COUNT(*) +3 +connection master; +DROP USER nonexisting@localhost; +ERROR HY000: Operation DROP USER failed for 'nonexisting'@'localhost' +DROP USER nonexisting@localhost, dummy@localhost; +ERROR HY000: Operation DROP USER failed for 'nonexisting'@'localhost' +DROP USER dummy1@localhost, dummy2@localhost; +SELECT user, host FROM mysql.user WHERE user like 'dummy%'; +User Host +SELECT COUNT(*) FROM mysql.user WHERE user like 'dummy%'; +COUNT(*) +0 +connection slave; +SELECT user,host FROM mysql.user WHERE user like 'dummy%'; +User Host +SELECT COUNT(*) FROM mysql.user WHERE user like 'dummy%'; +COUNT(*) +0 +include/rpl_end.inc |