python3.5的mysql连接库一般用哪个?
我知道三个:
1、pymysql
2、mysql-python
3、mysql官方连接库
问题:
在http://www.lfd.uci.edu/~gohlk... ,搜索不到pymysql,mysql-python没有看到python3版本的,有个mysqlclient。
一般用哪一个?
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
我用PyMySQL,Python实现,和MySQLdb高度兼容,同时适用于py2/py3,文档可以在官方Repo找到:https://github.com/PyMySQL/PyMySQL
安装只需执行
pip install PyMySQL即可MySQL官方提供了
mysql-connector-python驱动,使用以下命令安装即可:https://github.com/PyMySQL/my...
可以参考下。
用pymysql就够了!挺不错得!实现起来也简单、明了、直观!!!