cleaned structure of codes

This commit is contained in:
2026-01-17 16:47:41 +03:30
parent 89948ac4d7
commit 0ad6b39765
4 changed files with 0 additions and 0 deletions

22
Codes/MySQL/mysql_test.py Normal file
View File

@@ -0,0 +1,22 @@
import mysql.connector
# Connect to the database
conn = mysql.connector.connect(
host="localhost",
user="your_user",
password="your_password",
database="your_database"
)
cursor = conn.cursor()
# Run a query
cursor.execute("SELECT * FROM your_table;")
# Fetch and print results
for row in cursor.fetchall():
print(row)
# Close connection
cursor.close()
conn.close()