diff --git a/connection/database.go b/connection/database.go index 55ddedbe..395cd190 100644 --- a/connection/database.go +++ b/connection/database.go @@ -41,7 +41,7 @@ func getConn() *sql.DB { viper.GetString("mysql.password"), viper.GetString("mysql.host"), viper.GetInt("mysql.port"), - utils.GetStringConfs("mysql.db", "mysql.database"), + utils.GetStringConfs("mysql.database", "mysql.db"), ) if viper.GetBool("mysql.tls") { mysql.RegisterTLSConfig("tls", &tls.Config{