Copyright © 2019 MariaDB. All rights reserved.
MariaDB Server Documentation
Getting, Installing, and Upgrading MariaDB
Troubleshooting Installation Issues
Installation Issues with PHP5
Installation Issues with PHP5 - Source
PHP5 may give an error if used with the old connect method: <<code>> 'mysql_connect(): Headers and client library minor version mismatch. Headers:50156 Library:50206' <</code>> This is because the library wrongly checks and expects that the client library must be 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 [[1079|How to match API version for php5_mysql and mariadb client]]. Ways to fix this issue: # Switch to using the [[http://dev.mysql.com/downloads/connector/php-mysqlnd/|mysqlnd driver]] in PHP (Recommended solution). # Run with a lower [[http://php.net/error-reporting|error reporting level]]:<<code lang=php inline=false>>$err_level = error_reporting(0); $conn = mysql_connect('params'); error_reporting($err_level); <</code>> # Recompile PHP with the MariaDB client libraries. # Use your original MySQL client library with the MariaDB.