Connect MySQL with Python 3.6(用 Python 3.6 连接 MySQL)
问题描述
我正在寻找一个使用 Python 3.6 连接到 MySQL 的库.我发现的所有库都只适用于旧版本的 Python.遗憾的是,我无法更改为较旧的 Python 版本,因为我需要一些 Python 3.6 中引入的函数.
I'm looking for a library to connect to MySQL with Python 3.6. All libraries I found did only work with older versions of Python. Sadly I can't change to an older Python version because i need some functions, which are introduced in Python 3.6.
我在树莓派 pi3 上编程,但我认为这不会改变任何事情.
I am programming on a raspberry pi3, but I don't think this should change anything.
感谢您的帮助!
推荐答案
mysqlclient
正式支持python3.6.
mysqlclient
supports python3.6 officially.
https://pypi.python.org/pypi/mysqlclient
这篇关于用 Python 3.6 连接 MySQL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:用 Python 3.6 连接 MySQL


基础教程推荐
- 在多列上分布任意行 2021-01-01
- 在 MySQL 中:如何将表名作为存储过程和/或函数参数传递? 2021-01-01
- 二进制文件到 SQL 数据库 Apache Camel 2021-01-01
- 如何根据该 XML 中的值更新 SQL 中的 XML 2021-01-01
- oracle区分大小写的原因? 2021-01-01
- 如何在 SQL 中将 Float 转换为 Varchar 2021-01-01
- 什么是 orradiag_<user>文件夹? 2022-01-01
- mysql选择动态行值作为列名,另一列作为值 2021-01-01
- 表 './mysql/proc' 被标记为崩溃,应该修复 2022-01-01
- MySQL 中的类型:BigInt(20) 与 Int(20) 2021-01-01