1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-22040 versioning.truncate_privilege : GRANT fails with "Access denied", for root user

main.mysql_upgrade_noengine did not do "FLUSH PRIVILEGES" after restoring
the original backed global_priv table. So following tests might fail on
lack of some privileges.

Adding the FLUSH PRIVILEGES statement.
This commit is contained in:
Alexander Barkov
2020-03-26 09:29:33 +04:00
parent 6ef3dbb1ff
commit b8e7579194
2 changed files with 7 additions and 0 deletions

View File

@ -315,3 +315,7 @@ uninstall plugin blackhole;
uninstall plugin archive;
drop table mysql.global_priv;
rename table mysql.global_priv_bak to mysql.global_priv;
FLUSH PRIVILEGES;
SHOW GRANTS FOR root@localhost;
Grants for root@localhost GRANT ALL PRIVILEGES ON *.* TO `root`@`localhost` WITH GRANT OPTION
Grants for root@localhost GRANT PROXY ON ''@'%' TO 'root'@'localhost' WITH GRANT OPTION