New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possible bugs on Percona DB #16842
Comments
cc @David-5-1 |
…sion Signed-off-by: William Desportes <williamdes@wdes.fr>
Here is the work left diff --git a/libraries/classes/Server/Privileges.php b/libraries/classes/Server/Privileges.php
index 778bd014c7..6ba0723886 100644
--- a/libraries/classes/Server/Privileges.php
+++ b/libraries/classes/Server/Privileges.php
@@ -863,7 +863,7 @@ class Privileges
$host
);
- $isNew = ($serverType === 'MySQL' && $serverVersion >= 50507)
+ $isNew = ($serverType === 'MySQL' && $serverVersion >= 50507)//TODO
|| ($serverType === 'MariaDB' && $serverVersion >= 50200);
$activeAuthPlugins = ['mysql_native_password' => __('Native MySQL authentication')];
@@ -2510,7 +2510,7 @@ class Privileges
if (! isset($row['password']) && isset($row['Password'])) {
$row['password'] = $row['Password'];
}
- if (Util::getServerType() === 'MySQL'
+ if (Util::getServerType() === 'MySQL'//TODO
&& $serverVersion >= 50606
&& $serverVersion < 50706
&& ((isset($row['authentication_string'])
@@ -3872,7 +3872,7 @@ class Privileges
// Use 'SET PASSWORD' for pre-5.7.6 MySQL versions
// and pre-5.2.0 MariaDB
- if (($serverType === 'MySQL'
+ if (($serverType === 'MySQL'//TODO
&& $serverVersion >= 50706)
|| ($serverType === 'MariaDB'
&& $serverVersion >= 50200)
@@ -3962,9 +3962,9 @@ class Privileges
$hostname
);
- $isNew = ($serverType === 'MySQL' && $serverVersion >= 50507)
+ $isNew = ($serverType === 'MySQL' && $serverVersion >= 50507)//TODO
|| ($serverType === 'MariaDB' && $serverVersion >= 50200);
- $hasMoreAuthPlugins = ($serverType === 'MySQL' && $serverVersion >= 50706)
+ $hasMoreAuthPlugins = ($serverType === 'MySQL' && $serverVersion >= 50706)//TODO
|| ($this->dbi->isSuperUser() && $editOthers);
$activeAuthPlugins = ['mysql_native_password' => __('Native MySQL authentication')]; |
First of all, from https://www.percona.com/software/mysql-database/percona-server “Percona Server for MySQL® is a free, fully compatible, enhanced and open source drop-in replacement for any MySQL database.”, I tend to think there should be no reason to have a different behavior for matching versions of MySQL and Percona version. FTR, all the tests I did were done using PMA 5.1.0 and one of the following Percona Server for MySQL versions:
Privileges.getHtmlForLoginInformationFields and
|
Thank you so much @David-5-1 ! |
The change for |
Signed-off-by: William Desportes <williamdes@wdes.fr>
Signed-off-by: William Desportes <williamdes@wdes.fr>
…Compatibility::isMySqlOrPerconaDb should be used Signed-off-by: William Desportes <williamdes@wdes.fr>
As a follow up of #16839 I pushed 41e0d4d to clean up the conditions. Also (d99da46 and aaaff9c are related commits)
I had to add
Compatibility::isMySql
and for me this is very disturbing because I did not hear that some MySQL features where not on PerconaDBThe work to do is:
If my theory is true at the end of this process the
Compatibility::isMySql
should be removedPlease do all the changes on QA_5_1 using the old string comparing process, I will merge them into master afterwards
Here are the code occurrences:
The text was updated successfully, but these errors were encountered: