diff --git a/plugins/mysql/class/mysql.py b/plugins/mysql/class/mysqlDb.py similarity index 96% rename from plugins/mysql/class/mysql.py rename to plugins/mysql/class/mysqlDb.py index 9f607ee0c..773be5990 100755 --- a/plugins/mysql/class/mysql.py +++ b/plugins/mysql/class/mysqlDb.py @@ -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 diff --git a/plugins/mysql/index.py b/plugins/mysql/index.py index 0fb7b4073..832864ca0 100755 --- a/plugins/mysql/index.py +++ b/plugins/mysql/index.py @@ -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(