mysql-connector-python
- Officially supported by Oracle
- Pure python
- A little slow
- Not compatible with MySQLdb
pymysql
- Pure python
- Faster than mysql-connector
- Almost completely compatible with MySQLdb, after calling pymysql.install_as_MySQLdb()
mysqlclient
Django’s recommended library.
Friendly fork of the original MySQLdb, hopes to merge back some day.
The fastest implementation, as it is C based.
The most compatible with MySQLdb, as it is a forkDebian and Ubuntu use it to provide both python-mysqldb andpython3-mysqldb packages.
近期评论