You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MARIADB-ADMIN: unable to change password; error: 'The MariaDB server is running with the --strict-password-validation option so it cannot execute this statement'
262
262
# All done
263
263
uninstall plugin simple_password_check;
264
-
#
265
264
# End of 10.4 tests
266
265
#
266
+
# MDEV-30190 Password check plugin prevents changing grants for CURRENT_USER
267
+
#
268
+
select priv into @old_priv from mysql.global_priv where user='root' and host='localhost';
269
+
install soname "simple_password_check";
270
+
grant all on db1.* to current_user;
271
+
select current_user;
272
+
current_user
273
+
root@localhost
274
+
show grants;
275
+
Grants for root@localhost
276
+
GRANT ALL PRIVILEGES ON *.* TO `root`@`localhost` WITH GRANT OPTION
277
+
GRANT ALL PRIVILEGES ON `db1`.* TO `root`@`localhost`
278
+
GRANT PROXY ON ''@'%' TO 'root'@'localhost' WITH GRANT OPTION
279
+
revoke all on db1.* from current_user;
280
+
uninstall plugin simple_password_check;
281
+
update mysql.global_priv set priv=@old_priv where user='root' and host='localhost';
0 commit comments