-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Fix for version string when connecting to a MariaDB server #1767
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
Conversation
with 5.5.5- the version string is not correct when connecting to MariaDB server.. (For discussion see joomla/joomla-cms#9062 (comment)) This fix skips the first 7 bytes of version string, if the version string in greeting package is prefixed with 5.5.5- Neither MariaDB nor Oracle released a 5.5.5 version, so it will not have any side affect with older versions of MySQL, Percona or MariaDB.
|
Hi,
I was away long time away fron php (I once wrote mysqli in 2003), so I /Georg
Georg Richter, Senior Software Engineer |
@9EOR9 can we know the current status of this patch and or link to/excerpt from conversation mentioned ? |
Having waited more than a month for feedback, and having received nothing, I'm closing this PR as it would appear abandoned. Please take this action as encouragement to open a clean PR with issues raised here resolved. |
I can answer these question.
|
are php want to build library php_maria to replace php_mysqli? |
@amin007 nothing has been discussed about that anywhere I think. The mysqli and PDO_MySQL extensions work also for MariaDB... |
@petk, i know mysqli and pdo_mysql work for mariadb. but using maria's name is very interesting if used in the php library |
Since MariaDB hacked the version number and prefixes the MariaDB version with 5.5.5- the version string is not correct when connecting to MariaDB
server..
(For discussion see [Joomla discussion|https://github.com/joomla/joomla-cms/issues/9062#issuecomment-182969806])
This fix skips the first 7 bytes of version string, if the version string in greeting package is prefixed with
5.5.5- Neither MariaDB nor Oracle released a 5.5.5 version, so it will not have any side affect with
older versions of MySQL, Percona or MariaDB.