From 2ab9b4b26284e48b2d5a5773608cf74520b9fdb8 Mon Sep 17 00:00:00 2001 From: harshadyeola Date: Mon, 6 Apr 2015 19:36:15 +0530 Subject: [PATCH] changed sb cnnection way --- ee/core/mysql.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ee/core/mysql.py b/ee/core/mysql.py index 9454543d..88e5580a 100644 --- a/ee/core/mysql.py +++ b/ee/core/mysql.py @@ -41,8 +41,8 @@ class EEMysql(): def dbConnection(self, db_name): try: - connection = connections.Connection(db=db_name, - read_default_file='~/.my.cnf') + connection = pymysql.connect(db=db_name, + read_default_file='~/.my.cnf') return connection except DatabaseError as e: if e.args[1] == '#42000Unknown database \'{0}\''.format(db_name):