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


基础教程推荐
- 在 VB.NET 中更新 SQL Server DateTime 列 2021-01-01
- 如何在 SQL Server 的嵌套过程中处理事务? 2021-01-01
- SQL Server:只有 GROUP BY 中的最后一个条目 2021-01-01
- 将数据从 MS SQL 迁移到 PostgreSQL? 2022-01-01
- Sql Server 字符串到日期的转换 2021-01-01
- SQL Server 2016更改对象所有者 2022-01-01
- SQL Server 中单行 MERGE/upsert 的语法 2021-01-01
- 使用pyodbc“不安全"的Python多处理和数据库访问? 2022-01-01
- ERROR 2006 (HY000): MySQL 服务器已经消失 2021-01-01
- 无法在 ubuntu 中启动 mysql 服务器 2021-01-01