This commit is contained in:
midoks
2021-02-04 02:26:10 +08:00
parent 65bd3fefa9
commit b7f9485ff6
2 changed files with 3 additions and 3 deletions
@@ -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
+2 -2
View File
@@ -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(