diff options
Diffstat (limited to 'wqflask/maintenance/dataset/db.py')
-rw-r--r-- | wqflask/maintenance/dataset/db.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/wqflask/maintenance/dataset/db.py b/wqflask/maintenance/dataset/db.py new file mode 100644 index 00000000..453ee707 --- /dev/null +++ b/wqflask/maintenance/dataset/db.py @@ -0,0 +1,10 @@ +import MySQLdb + +def get_cursor(): + host = 'localhost' + user = 'webqtl' + passwd = 'webqtl' + db = 'db_webqtl' + con = MySQLdb.Connect(db=db, host=host, user=user, passwd=passwd) + cursor = con.cursor() + return cursor
\ No newline at end of file |