import pymysql db = pymysql.connect(host="192.168.254.1xx",user="root",password="52",database="FaceCloudDB") cursor = db.cursor() cursor.execute("SELECT VERSION()") data = cursor.fetchall() print(data)
2021-08-17 17:41:46
import pymysql db = pymysql.connect(host="192.168.254.1xx",user="root",password="52",database="FaceCloudDB") cursor = db.cursor() cursor.execute("SELECT VERSION()") data = cursor.fetchall() print(data)
下一篇:JDBC工具类