Came across this error in NGINX Error log
Fix was to install php5-mysqlnd instead of php5-mysql
- it’s a drop-in replacement
- it’s not linked against any libmysqlclient library
- it won’t throw any irrelevant warning about version mismatch
- it has a lot of benefits. See http://www.php.net/mysqlnd for more info
Dealing with PHP Warning – mysql_connect(): Headers and client library minor version mismatch. Headers:50535 Library:50617