diff --git a/routers/install.go b/routers/install.go
index 84e506c70b..c7c9fed28a 100644
--- a/routers/install.go
+++ b/routers/install.go
@@ -58,6 +58,7 @@ func Install(ctx *context.Context) {
 	// Database settings
 	form.DbHost = models.DbCfg.Host
 	form.DbUser = models.DbCfg.User
+	form.DbPasswd = models.DbCfg.Passwd
 	form.DbName = models.DbCfg.Name
 	form.DbPath = models.DbCfg.Path