2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
drupal_set_title('Unable to connect to database server');
printtheme('maintenance_page','<p>This either means that the username and password information in your <code>settings.php</code> file is incorrect or we can\'t contact the MySQL database server through the mysqli libraries. This could also mean your hosting provider\'s database server is down.</p>
...
...
@@ -56,7 +57,7 @@ function db_connect($url) {
<p>For more help, see the <a href="http://drupal.org/node/258">Installation and upgrading handbook</a>. If you are unsure what these terms mean you should probably contact your hosting provider.</p>');
exit;
}
elseif(mysqli_connect_errno()==1044){
elseif(mysqli_connect_errno()>0){
drupal_maintenance_theme();
drupal_set_title('Unable to select database');
printtheme('maintenance_page','<p>We were able to connect to the MySQL database server (which means your username and password are okay) but not able to select the database.</p>