diff --git a/libraries/server_privileges.lib.php b/libraries/server_privileges.lib.php index 2d09e43ef4..b581f5d27a 100644 --- a/libraries/server_privileges.lib.php +++ b/libraries/server_privileges.lib.php @@ -3995,10 +3995,18 @@ function PMA_getDataForChangeOrCopyUser() if (Util::getServerType() == 'MySQL' && PMA_MYSQL_INT_VERSION >= 50606 && PMA_MYSQL_INT_VERSION < 50706 - && isset($password) + && ((isset($authentication_string) + && empty($password)) + || (isset($plugin) + && $plugin == 'sha256_password')) + ) { + $password = $authentication_string; + } + + if (PMA_Util::getServerType() == 'MariaDB' + && PMA_MYSQL_INT_VERSION >= 50500 + && isset($authentication_string) && empty($password) - && isset($plugin) - && $plugin == 'sha256_password' ) { $password = $authentication_string; }