diff --git a/libraries/server_privileges.lib.php b/libraries/server_privileges.lib.php index 35e74f31ba..69862e1c54 100644 --- a/libraries/server_privileges.lib.php +++ b/libraries/server_privileges.lib.php @@ -5089,7 +5089,7 @@ function PMA_getSqlQueriesForDisplayAndAddUser($username, $hostname, $password) // 'IDENTIFIED WITH auth_plugin' // is supported by MySQL 5.5.7+ - if ($serverType == 'MySQL' + if (($serverType == 'MySQL' || $serverType == 'Percona Server') && PMA_MYSQL_INT_VERSION >= 50507 && isset($_REQUEST['authentication_plugin']) ) { @@ -5136,7 +5136,7 @@ function PMA_getSqlQueriesForDisplayAndAddUser($username, $hostname, $password) // newer MySQL versions // and 'CREATE USER ... USING .. VIA ..' syntax for // newer MariaDB versions - if (($serverType == 'MySQL' + if ((($serverType == 'MySQL' || $serverType == 'Percona Server') && PMA_MYSQL_INT_VERSION >= 50706) || ($serverType == 'MariaDB' && PMA_MYSQL_INT_VERSION >= 50200)