Example issue:
Message: mysqli::real_connect(): Headers and client library minor version mismatch. Headers:50550 Library:100029
Sounds like server issue. PHP and MySQL versions not compatible.
Try this solution: https://stackoverflow.com/questions/10759334/headers-and-client-library-minor-version-mismatch
If this is localhost try with: