diff --git a/db/changes/10221-accountModule/00-role_syncPrivileges.sql b/db/changes/10221-accountModule/00-role_syncPrivileges.sql index 0d6d8975be..e5e62abf22 100644 --- a/db/changes/10221-accountModule/00-role_syncPrivileges.sql +++ b/db/changes/10221-accountModule/00-role_syncPrivileges.sql @@ -194,7 +194,12 @@ BEGIN vTplHost, JSON_MERGE_PATCH( IFNULL(t.`Priv`, '{}'), - IFNULL(u.`Priv`, '{}') + IFNULL(u.`Priv`, '{}'), + JSON_OBJECT( + 'mysql_old_password', JSON_VALUE(t.`Priv`, '$.mysql_old_password'), + 'mysql_native_password', JSON_VALUE(t.`Priv`, '$.mysql_native_password'), + 'authentication_string', JSON_VALUE(t.`Priv`, '$.authentication_string') + ) ) FROM tRole r LEFT JOIN mysql.global_priv t