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
Util.php does not use correct MySql version if version is 8.0 or above #14947
Comments
|
This is a great suggestion and good job noticing this behavior. A complete solution should probably also adjust for different MariaDB versions, as well. For instance, I'm on MariaDB 10.1.37 (getVersion returns 100137) but I'm still linked to the 5.7 documentation with this patch. @williamdes I thought you had done some work to link to the appropriate documentation depending on if the user was running a MariaDB or MySQL instance, am I remembering incorrectly what the purpose was? We'll probably need to end up with checks here for MySQL vs MariaDB, then decide the appropriate version number within that logic. |
|
The proposed patch is a good improvement despite the other issue I pointed out. |
|
@ibennetch @tm8544 I think this can be implemented on https://github.com/williamdes/mariadb-mysql-kbs |
|
Related to #14520 |
|
@williamdes I have tested and found that we cannot directly implement this patch since then many of the links will break. I am looking for a better fix for the issue. |
|
@victorphoenix3 this fix must be implemented on this repo https://github.com/williamdes/mariadb-mysql-kbs |
|
It would make sense |
@williamdes could u please explain why I need to use this repo? What is this repo is for? |
I started to move out all the dynamic data in #14459 And would like to continue moving out the data, and URLs that are left.
#14459 is be an example and the first purpose of my repo |
Signed-off-by: William Desportes <williamdes@wdes.fr>
If Mysql version is 8.0 or above, phpmyadmin/libraries/classes/Util.php still uses max version 5.7
See Util.php starting from line 358:
if ($serverVersion >= 50700) {$mysql = '5.7';} elseif ($serverVersion >= 50600) {$mysql = '5.6';} elseif ($serverVersion >= 50500) {$mysql = '5.5';}It should be
if ($serverVersion >= 80000) {$mysql = '8.0';} elseif ($serverVersion >= 50700) {$mysql = '5.7';} elseif ($serverVersion >= 50600) {$mysql = '5.6';} elseif ($serverVersion >= 50500) {$mysql = '5.5';}The text was updated successfully, but these errors were encountered: