Wrong database version warning.
-
While this is not an impediment in any way, I have discovered that my server is reporting database version in this way: “5.5.5-10.6.7-MariaDB-2ubuntu1.1-log”. Causing a notification to show up backend.
Here: https://www.php.net/manual/en/mysqli.get-server-info.php accoring to user contribution Windows environments may report an extra 5.5.5 in version. My server is using Linux and apparently this was fixed in PHP release 8.0.16 (17 Feb 2022).
Looking at how wordpress reads the version I have found this code
$wpdb->get_var( 'SELECT VERSION()' );
inclass-wp-site-health.php
file. They are taking into account if server is MariaDB and compare the version against 10.0. This seams to be a better way of doing it.A rewrite of the
function cluevo_get_mysql_server_version()
would be necesary to remove the wrong version warning I have and have better version compatibility going forward.
- The topic ‘Wrong database version warning.’ is closed to new replies.