gameServer/OfficialServer/extdbinterface.hs
changeset 4982 3572eaf14340
parent 4932 f11d80bac7ed
child 6040 a740069c21e3
--- a/gameServer/OfficialServer/extdbinterface.hs	Fri Mar 04 11:30:53 2011 +0300
+++ b/gameServer/OfficialServer/extdbinterface.hs	Fri Mar 04 22:45:28 2011 +0300
@@ -60,9 +60,10 @@
 
 main = do
         dbHost <- getLine
+        dbName <- getLine
         dbLogin <- getLine
         dbPassword <- getLine
 
-        let mySQLConnectInfo = defaultMySQLConnectInfo {mysqlHost = dbHost, mysqlDatabase = "hedge_main", mysqlUser = dbLogin, mysqlPassword = dbPassword}
+        let mySQLConnectInfo = defaultMySQLConnectInfo {mysqlHost = dbHost, mysqlDatabase = dbName, mysqlUser = dbLogin, mysqlPassword = dbPassword}
 
         dbConnectionLoop mySQLConnectInfo