Folder reorganize 1
This commit is contained in:
15
monitoring/test_mysql.py
Normal file
15
monitoring/test_mysql.py
Normal file
@@ -0,0 +1,15 @@
|
||||
import mysql.connector
|
||||
|
||||
try:
|
||||
conn = mysql.connector.connect(
|
||||
host="localhost",
|
||||
user="corey",
|
||||
password="41945549",
|
||||
database="controls",
|
||||
port=3306,
|
||||
connection_timeout=5,
|
||||
)
|
||||
print("Connected!")
|
||||
conn.close()
|
||||
except Exception as e:
|
||||
print(f"Connection failed: {e}")
|
||||
Reference in New Issue
Block a user