How do I troubleshoot DB Error: connect failed on a new installation on Wordpress?
The php mysql extension is no longer supported. Need to use mysqli. See
https://civicrm.org/blog/totten/psa-please-verify-php-extension-mysqli

The web server log might also indicate the error.