问题
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