Installation issues with PHP5
You are viewing an old version of this article. View
the current version here.
PHP5 if used with the old connect method may give you an error:
'mysql_connect(): Headers and client library minor version mismatch. Headers:50156 Library:50206'
This is because the library wrongly checks and expect that the client library must of the exact same version as PHP was compiled with. You would get the same error if you tried to upgrade just the MySQL client library without upgrading PHP at the same time. See also How to match API version for php5_mysql and mariadb client.
Ways to fix this issue:
- Switch to use the mysqlnd driver in PHP (Recommended solution).
- Run with a lower error reporting level.
$err_level = error_reporting(0); $conn = mysqli_connect('params'); error_reporting($err_level);
- Recompile PHP with the MariaDB client libraries.
Comments
Comments loading...
Content reproduced on this site is the property of its respective owners,
and this content is not reviewed in advance by MariaDB. The views, information and opinions
expressed by this content do not necessarily represent those of MariaDB or any other party.