connecting mysql and python3.3

只谈情不闲聊 提交于 2019-12-02 17:07:27

问题


i'm new to django an usind django 1.5 and python 3.3. Is there any way to install mysqlDB on python 3.3 (or)Is there any other method to connect them ?


回答1:


you can use https://github.com/PyMySQL/PyMySQL or http://dev.mysql.com/doc/connector-python/en/connector-python-versions.html

the second Connector does not support the old MySQL Server authentication methods, which means that MySQL versions prior to 4.1 will not work.




回答2:


PyMySQL, a pure python client library without a dependency on the standard mysql client library, has Python 3 support via a build script.




回答3:


Have you tried this? http://dev.mysql.com/downloads/connector/python/ The windows msi package for the mysql connector installed without any problem and seems to work nicely for a 1.0.10 (on windows 2008 R2 with python 3.3)



来源:https://stackoverflow.com/questions/15230835/connecting-mysql-and-python3-3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!