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

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.