diff --git a/plugins/mariadb/index.py b/plugins/mariadb/index.py index 964519e2f..e8cba8947 100755 --- a/plugins/mariadb/index.py +++ b/plugins/mariadb/index.py @@ -144,10 +144,12 @@ def pSqliteDb(dbname='databases'): def pMysqlDb(): - db = mw.getMyORM() + # mysql.connector + # db = mw.getMyORM() + # MySQLdb | + db = mw.getMyORMDb() db.setDbConf(getConf()) - db.setPort(getDbPort()) db.setSocket(getSocketFile()) diff --git a/plugins/mysql-yum/index.py b/plugins/mysql-yum/index.py index d1fc6dea1..02a970347 100755 --- a/plugins/mysql-yum/index.py +++ b/plugins/mysql-yum/index.py @@ -132,7 +132,12 @@ def pSqliteDb(dbname='databases'): def pMysqlDb(): - db = mw.getMyORM() + # mysql.connector + # db = mw.getMyORM() + # MySQLdb | + db = mw.getMyORMDb() + + # db = mw.getMyORM() db.__DB_CNF = getConf() db.setPort(getDbPort()) db.setSocket(getSocketFile())