mirror of
https://github.com/MariaDB/server.git
synced 2025-02-23 05:43:08 +01:00

opt_kill_long_query_type being an enum could be 0 corresponding
to ALL. When ALL is specified, the CONNECTION ADMIN is still
required.
Also check REPLICA MONITOR privilege and make the tests
find the results by recording stderr.
Noticed thanks to bug report by Tim van Dijen.
Fixes: 79b58f1ca8
15 lines
803 B
Text
15 lines
803 B
Text
CREATE user backup@localhost;
|
|
FOUND 1 /missing required privilege RELOAD/ in backup.log
|
|
FOUND 1 /missing required privilege PROCESS/ in backup.log
|
|
FOUND 1 /GRANT USAGE ON/ in backup.log
|
|
GRANT RELOAD, PROCESS on *.* to backup@localhost;
|
|
FOUND 1 /missing required privilege REPLICA MONITOR/ in backup.log
|
|
GRANT REPLICA MONITOR ON *.* TO backup@localhost;
|
|
REVOKE REPLICA MONITOR ON *.* FROM backup@localhost;
|
|
FOUND 1 /missing required privilege CONNECTION ADMIN/ in backup.log
|
|
GRANT CONNECTION ADMIN ON *.* TO backup@localhost;
|
|
FOUND 1 /missing required privilege REPLICATION SLAVE ADMIN/ in backup.log
|
|
FOUND 1 /missing required privilege REPLICA MONITOR/ in backup.log
|
|
GRANT REPLICATION SLAVE ADMIN ON *.* TO backup@localhost;
|
|
GRANT REPLICA MONITOR ON *.* TO backup@localhost;
|
|
DROP USER backup@localhost;
|