Commit b8e75791 authored by Alexander Barkov's avatar Alexander Barkov

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.
parent 6ef3dbb1
......@@ -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
......@@ -76,3 +76,6 @@ 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;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment