Skip to content

Commit 94ace25

Browse files
committed
wip, differences between connector versions
1 parent e6d4cf6 commit 94ace25

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

mysql-connector/mysql-connector.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#! /usr/bin/env python3
2+
3+
import mysql.connector
4+
5+
db_config = dict(
6+
host="127.0.0.1",
7+
user="kris",
8+
passwd="geheim",
9+
db="kris",
10+
# cursorclass=MySQLdb.cursors.DictCursor,
11+
)
12+
13+
db = mysql.connector.connect(**db_config)
14+
print(db)
15+
db.close()

0 commit comments

Comments
 (0)