16 lines
315 B
Python
16 lines
315 B
Python
import mysql.connector
|
|
|
|
conn = mysql.connector.connect(
|
|
host='192.168.201.207',
|
|
user='pozorisp',
|
|
password='pozorisp',
|
|
database='pozorisp_Zborovskiy',
|
|
charset='utf8mb4',
|
|
)
|
|
|
|
cur = conn.cursor()
|
|
cur.execute("SELECT name FROM suppliers LIMIT 3")
|
|
for row in cur.fetchall():
|
|
print(row)
|
|
|
|
conn.close() |