Search our database

How to solve MySQL error “Headers and client library minor version mismatch” (DirectAdmin platform)

In case when MySQL has been updated and PHP has been rebuild through custombuild but the websites are still showing this error:

Warning: mysql_connect()
[function.mysql-connect]: /Headers and client library minor version
mismatch/. /Headers:50157 Library:50511/

Perform a cleanup in custombuild and rebuild PHP

cd /usr/local/DirectAdmin/custombuild
./build clean
./build php n