Last modified: 2014-09-12 01:32:37 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T38338, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 36338 - do not use old mysql_connect method, avoid client mismatch php/mariadb
do not use old mysql_connect method, avoid client mismatch php/mariadb
Status: RESOLVED FIXED
Product: Wikimedia Labs
Classification: Unclassified
wikistats (Other open bugs)
unspecified
All Linux
: Normal enhancement
: ---
Assigned To: Daniel Zahn
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-04-29 10:49 UTC by Daniel Zahn
Modified: 2014-09-12 01:32 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Daniel Zahn 2012-04-29 10:49:33 UTC
currently, when running php-cli update scripts we are getting:

"PHP Warning:  mysql_connect(): Headers and client library minor version mismatch."

this is an issue with php vs. mariadb as here:

"This is because the library wrongly checks and expects that the client library must be the exact same version as PHP was compiled with."

http://kb.askmonty.org/en/installation-issues-with-php5

There is a number of ways to fix it:

---
Ways to fix this issue:

    Switch to using the mysqlnd driver in PHP (Recommended solution).
    Run with a lower error reporting level:

    $err_level = error_reporting(0);
    $conn = mysql_connect('params');
    error_reporting($err_level); 

    Recompile PHP with the MariaDB client libraries.
    Use your original MySQL client library with the MariaDB. 
--

Use the recommended solution and stop using the old connect method anyways.
Comment 1 Robert Hanke 2012-05-28 19:11:03 UTC
Removed upon request
Comment 2 Daniel Zahn 2014-09-12 01:32:37 UTC
this warning is meanwhile gone. i think because the labs instance is now newer distro version.  anyways..it's not an issue anymore.. at least not one i see.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links