我在 Windows 上使用 ActiveState Python 3 并想连接到我的 MySQL 数据库.我听说 mysqldb
是用.我找不到 Python 3 的 mysqldb
.
mysqldb
的二进制文件是否存在可用的存储库?如何在 Windows 上的 Python 3 中连接到 MySQL?
目前有几个选项可以将 Python 3 与 mysql 结合使用:
https://pypi.python.org/pypi/mysql-connector-python>
https://pypi.python.org/pypi/pymysql
MySQLdb
,调用pymysql.install_as_MySQLdb()
https://pypi.python.org/pypi/cymysql
https://pypi.python.org/pypi/mysqlclient
python-mysqldb
和 python3-mysqldb
包.此处的基准:https://github.com/methane/mysql-driver-benchmarks
I am using ActiveState Python 3 on Windows and wanted to connect to my MySQL database.
I heard that mysqldb
was the module to use.
I can't find mysqldb
for Python 3.
Is there a repository available where the binaries exist for mysqldb
?
How can I connect to MySQL in Python 3 on Windows?
There are currently a few options for using Python 3 with mysql:
https://pypi.python.org/pypi/mysql-connector-python
https://pypi.python.org/pypi/pymysql
MySQLdb
, after calling pymysql.install_as_MySQLdb()
https://pypi.python.org/pypi/cymysql
https://pypi.python.org/pypi/mysqlclient
python-mysqldb
andpython3-mysqldb
packages.benchmarks here: https://github.com/methane/mysql-driver-benchmarks
这篇关于如何在 Windows 上的 Python 3 中连接到 MySQL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!