下载安装连接器:
下载pythonconnector:https://dev.mysql.com/downloads/file/?id=484755,我的版本是Python3.7,64位,找到对应的msi下载。
也可以使用pip位Python安装具体参见:https://dev.mysql.com/doc/connector-python/en/connector-python-installation-binary.html
验证安装是否成功:
一般在你的Python下lib的site-package中(多版本的python安装时,默认是添加在path中的Python)