diff --git a/install/index.php b/install/index.php
index cd741b095..7bb5ddc61 100644
--- a/install/index.php
+++ b/install/index.php
@@ -414,7 +414,7 @@ if (!file_exists('.lock')) {
@@ -1479,6 +1479,10 @@ if (!file_exists('.lock')) {
return;
}
+ if (db_hostname.val() === '%') {
+ db_hostname.val('localhost');
+ }
+
var originalButtonText = $('#db_connection_test_button').html();
$('#db_connection_test_button').html('
= __("Connecting..."); ?>').prop('disabled', true);