| 1 |
############################################################################### |
| 2 |
# WL#12098: MySQL system users # |
| 3 |
# # |
| 4 |
# This test file covers the scenarios around adding/removing the # |
| 5 |
# restriction_list in mysql.user.user_attributes column. # |
| 6 |
# # |
| 7 |
# The restriction_list is a key:value pair. Database name serves as key, # |
| 8 |
# and an array of static privileges which are prohibited on that database # |
| 9 |
# serves as value. # |
| 10 |
# # |
| 11 |
# Refer the test file - partial_revokes_usage.test for the usage of # |
| 12 |
# partial revokes once they are created # |
| 13 |
# # |
| 14 |
############################################################################### |
| 15 |
|
| 16 |
--source include/set_privilege_checks_user_as_system_user.inc |
| 17 |
--let $rpl_privilege_checks_user_grant_option = 1 |
| 18 |
--source include/master-slave.inc |
| 19 |
|
| 20 |
SELECT @@global.partial_revokes; |
| 21 |
|
| 22 |
--disable_query_log |
| 23 |
CALL mtr.add_suppression("one or more privileges granted through"); |
| 24 |
CALL mtr.add_suppression("these are not valid database privileges"); |
| 25 |
CALL mtr.add_suppression("corresponding global privilege(s) are not granted"); |
| 26 |
CALL mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT"); |
| 27 |
--enable_query_log |
| 28 |
|
| 29 |
--let $TEST_MODE=RPL |
| 30 |
--source ../../auth_sec/include/partial_revokes_add_remove.inc |
| 31 |
--source include/rpl_end.inc |