您的位置:首页 > 编程语言 > Python开发

python3连接mysql - driver

2017-05-28 22:39 302 查看
解决方案:https://stackoverflow.com/questions/35684400/how-to-use-python-3-5-1-with-a-mysql-database

I am using Python 3.5.2 on window 8 pro 64-bit and the following procedure is worked for me.

Download driver (PyMySQL-0.7.9.tar.gz (md5)) from https://pypi.python.org/pypi/PyMySQL
Extract and copy the folder pymysql(这个内部文件夹) into the python Lib folder e.g (C:\Users\MyUsername\AppData\Local\Programs\Python\Python35-32\Lib)

Copy and run the following example.py
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  python3-my mysql