Python - PyMYSQL遇到的连接报错 KeyError: 45
以下是运行代码段
#!/usr/bin/python
# coding: utf-8
import pymysql
cxn = pymysql.Connect(host = 'localhost', port = 3306 , user = 'root', passwd = '123456', db='test',charset='utf8')
cur = cxn.cursor()
sql = ...
原创
2019-11-06 18:07:31 ·
787 阅读 ·
0 评论