mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
up
This commit is contained in:
@@ -7,7 +7,7 @@ import sys
|
||||
sys.path.append("/usr/local/lib/python2.7/site-packages")
|
||||
|
||||
|
||||
class mysql:
|
||||
class mysqlDb:
|
||||
__DB_PASS = None
|
||||
__DB_USER = 'root'
|
||||
__DB_PORT = 3306
|
||||
@@ -28,7 +28,7 @@ def getPluginDir():
|
||||
return mw.getPluginDir() + '/' + getPluginName()
|
||||
|
||||
sys.path.append(getPluginDir() + "/class")
|
||||
import mysql
|
||||
import mysqlDb
|
||||
|
||||
|
||||
def getServerDir():
|
||||
@@ -127,7 +127,7 @@ def pSqliteDb(dbname='databases'):
|
||||
|
||||
|
||||
def pMysqlDb():
|
||||
db = mysql.mysql()
|
||||
db = mysqlDb.mysqlDb()
|
||||
db.__DB_CNF = getConf()
|
||||
db.setDbConf(getConf())
|
||||
db.setPwd(pSqliteDb('config').where(
|
||||
|
||||
Reference in New Issue
Block a user