hms_cattle_research/db_connection.py
力力 武 5051c5d71f 初稿
2024-09-19 20:24:02 +08:00

15 lines
328 B
Python

# Author: Lee Wu Love Lele
# Datetime: 2024/9/7 21:20
import mysql.connector
# 连接 MySQL 数据库
connection = mysql.connector.connect(
host="rm-bp1442up0e0nlz95szo.mysql.rds.aliyuncs.com",
user="rhm_read_only",
password="aA123456+",
database="rhm_insure_dev"
)
def get_connection():
return connection