不写 database 参数就好了

import pymysql.cursors

# Connect to the database
connection = pymysql.connect(host='192.168.31.xxx',
                             user='root',
                             password='xxx',
                             )

universe_king
3.4k 声望680 粉丝