Browse Source

changed sb cnnection way

bugfixes
harshadyeola 10 years ago
parent
commit
2ab9b4b262
  1. 4
      ee/core/mysql.py

4
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):

Loading…
Cancel
Save