diff --git a/sqlExport.py b/sqlExport.py index e117f04..1f58463 100644 --- a/sqlExport.py +++ b/sqlExport.py @@ -5,6 +5,7 @@ import MySQLdb import yaml from common import membershipworks +from passwords import MEMBERSHIPWORKS_DB def insertFromTableMap(table, data, tableMap): @@ -49,7 +50,7 @@ with open('tableMapping.yaml') as f: tableMapping = yaml.load(f, yaml.SafeLoader) -conn = MySQLdb.connect(user='membershipworks', password='asdf', database='membershipworks') +conn = MySQLdb.connect(**MEMBERSHIPWORKS_DB) c = conn.cursor() def createDefinitionsFromTableMap(tableMap):