Solution Recommended by WordPress: Update PHP version.
Steps:
1. Login to cPanel.
2. Click on PHP version or PHP Selector.
3. Select and Set the latest version of PHP (like PHP 5.5, PHP 5.6 or latest).
“Solved”.
For more information, https://wordpress.org/support/topic/wp45-upgrade-mysql_connect-error
Author: Rajiv Sharma,
Founder & CEO at mechscinovate
1 Comment
Theo · April 24, 2016 at 1:12 am
Thanks, Rajiv for posting this (and Google linking to it). Upgrading PHP from 5.3.29 to 5.6 solved the mismatch problem for me. It’s mind-boggling how many people posted about this problem after updating to WP 4.5, and yet some of the forum threads I saw came up with all kinds of non-solution time-wasters. It is regrettable that WP didn’t alert people in advance about the potential mismatch issue with some versions of PHP and the resulting error messages that would no longer be suppressed in 4.5.