MDEV-22030 Don't grant REPLICATION MASTER ADMIN automatically on upgrade from an older JSON user table

This commit is contained in:
Alexander Barkov 2020-03-25 00:41:32 +04:00
commit 19e998d20c
3 changed files with 16 additions and 3 deletions

View file

@ -81,6 +81,10 @@ WHERE
host='localhost' and user='good_version_id_100400';
FLUSH PRIVILEGES;
SHOW GRANTS FOR good_version_id_100400@localhost;
# Testing that it's missing only "REPLICATION MASTER ADMIN".
# Should report ALL PRIVILEGES after GRANT REPLICATION MASTER ADMIN:
GRANT REPLICATION MASTER ADMIN ON *.* TO good_version_id_100400@localhost;
SHOW GRANTS FOR good_version_id_100400@localhost;
DROP USER good_version_id_100400@localhost;