13 lines
379 B
Python
13 lines
379 B
Python
|
import pymysql
|
||
|
|
||
|
con = pymysql.connect(host='192.168.1.52',
|
||
|
user='Quentin',
|
||
|
password='kaPl0wskii',
|
||
|
db='serverIDs',
|
||
|
charset='utf8mb4',
|
||
|
cursorclass=pymysql.cursors.DictCursor)
|
||
|
|
||
|
with con:
|
||
|
cur = con.cursor()
|
||
|
print(cur.execute("SELECT ID FROM servers WHERE ID = 1"))
|