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
MariaDB version not displayed correctly #11934
Comments
tl;dr: The version you are seeing is not "wrong". You could set a custom version string from MariaDB 10.2.6 onwards (see here) but not earlier. And just fixing the version displayed might break other things yet to be known... As long as MariaDB stays reasonably compatible with MySQL there should be no problems. In detail this is a result of how MariaDB reports it's version. Take for example the following code: $db = new PDO('mysql:host=127.0.0.1', 'root', 'password');
echo $db->getAttribute(PDO::ATTR_SERVER_VERSION); If you execute this on your server in an interactive PHP shell ( After receiving this value the underlying Even further down the rabbit hole you see the MariaDB source code with an explanation (see here) about why they did that. Also mentioning they manually patched their clients to just strip this version from getting printed. |
@mneudert do you think there is something we could improve in version detection for MariaDB? Or would that require changes to |
As modifying external libraries is always a bad idea the most promising change seems be extending Changing Having a custom display version could provide something really specific like |
Thanks guys! |
We are using Piwik vs 3.0.2 on CentOS 7 with MariaDB 10.0.31. It works fine so far. Unfortunately the system information in the settings show MySQL 5.5.5 instead. Though Piwik and PHP version are displayed correctly. Any idea how to fix this?
The text was updated successfully, but these errors were encountered: