diff --git a/libraries/display_change_password.lib.php b/libraries/display_change_password.lib.php
index ebac2ebfbc..0b65e3d6b8 100644
--- a/libraries/display_change_password.lib.php
+++ b/libraries/display_change_password.lib.php
@@ -82,7 +82,9 @@ function PMA_getHtmlForChangePassword($username, $hostname)
);
// See http://dev.mysql.com/doc/relnotes/mysql/5.7/en/news-5-7-5.html
- if (PMA_MYSQL_INT_VERSION >= 50705) {
+ if (PMA_Util::getServerType() == 'MySQL'
+ && PMA_MYSQL_INT_VERSION >= 50705
+ ) {
$html .= '
'
. '| ' . __('Password Hashing:') . ' | '
. ''
@@ -111,7 +113,9 @@ function PMA_getHtmlForChangePassword($username, $hostname)
. ''
. ' | '
. '
';
- } elseif (PMA_MYSQL_INT_VERSION >= 50606) {
+ } elseif (PMA_Util::getServerType() == 'MySQL'
+ && PMA_MYSQL_INT_VERSION >= 50606
+ ) {
$html .= ''
. '| ' . __('Password Hashing:') . ' | '
. ''
diff --git a/libraries/server_privileges.lib.php b/libraries/server_privileges.lib.php
index 65840461fe..c557098be4 100644
--- a/libraries/server_privileges.lib.php
+++ b/libraries/server_privileges.lib.php
@@ -1700,7 +1700,9 @@ function PMA_getHtmlForLoginInformationFields(
. '>' . __('MySQL native password') . '';
// sha256 auth plugin exists only for 5.6.6+
- if (PMA_MYSQL_INT_VERSION >= 50606) {
+ if (PMA_Util::getServerType() == 'MySQL'
+ && PMA_MYSQL_INT_VERSION >= 50606
+ ) {
$html_output .= '';
@@ -5016,7 +5018,9 @@ function PMA_getSqlQueriesForDisplayAndAddUser($username, $hostname, $password)
$sql_query = '';
}
- if (PMA_MYSQL_INT_VERSION >= 50700) {
+ if (PMA_Util::getServerType() == 'MySQL'
+ && PMA_MYSQL_INT_VERSION >= 50700
+ ) {
$password_set_real = null;
$password_set_show = null;
} else {
diff --git a/test/libraries/PMA_server_privileges_test.php b/test/libraries/PMA_server_privileges_test.php
index 78e103bd1a..23987ac3be 100644
--- a/test/libraries/PMA_server_privileges_test.php
+++ b/test/libraries/PMA_server_privileges_test.php
@@ -689,6 +689,7 @@ class PMA_ServerPrivileges_Test extends PHPUnit_Framework_TestCase
);
$this->assertEquals(
"CREATE USER ''@'localhost';GRANT USAGE ON *.* TO ''@'localhost' REQUIRE NONE;"
+ . "SET PASSWORD FOR ''@'localhost' = PASSWORD('***');"
. "GRANT ALL PRIVILEGES ON `pma_dbname`.* TO ''@'localhost';",
$sql_query
);
|