https://bugzilla.wikimedia.org/show_bug.cgi?id=36338

       Web browser: ---
             Bug #: 36338
           Summary: do not use old mysql_connect method, avoid client
                    mismatch php/mariadb
           Product: Wikimedia Labs
           Version: unspecified
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: wikistats
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    Classification: Unclassified
   Mobile Platform: ---


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.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to