diff --git a/lib/setup.php b/lib/setup.php
index 7082f0b2afd4dc19e9596ed3694b1c22a0e10c92..b0af0620527e677f6d2ebc9e1405b70cd0af0aaf 100644
--- a/lib/setup.php
+++ b/lib/setup.php
@@ -61,7 +61,7 @@ class OC_Setup {
 				$error[] = $l->t("%s you may not use dots in the database name", array($dbprettyname));
 			}
 			if($dbtype != 'oci' && empty($options['dbhost'])) {
-				$error[] = $l->t("%s set the database host.", array($dbprettyname));
+				$options['dbhost'] = 'localhost';
 			}
 		}