update code

This commit is contained in:
2024-12-24 13:38:59 +08:00
parent eb7316b837
commit d64e709d3f
2 changed files with 54 additions and 5 deletions

View File

@@ -4,11 +4,11 @@ from mysql.connector import Error
def test_mysql_connection():
# MySQL 配置
config = {
'host': '192.168.2.20',
'port': 8006,
'user': 'mticloud',
'password': 'fT3KsNDahADGcWCZ',
'database': 'mti-cloud',
'host': '192.168.1.202',
'port': 3306,
'user': 'gitea',
'password': 'CYVVMMxrox3ThsGy',
'database': 'gitea',
'charset': 'utf8mb4'
}