mysql-connector
MySQL driver written in Python
What it is and what it does
mysql-connector is a Python driver for connecting to and querying MySQL databases. It provides the low-level interface needed to send SQL commands to a MySQL server and retrieve results. The package has no runtime dependencies and installs from source, which introduces compilation overhead on some systems.
This package is abandoned and deprecated. Its maintainer explicitly recommends switching to the official version. The last release was in April 2019, and no updates have been published since. Classifiers indicate support only through Python 3.3, making it unsuitable for modern Python environments.
Use it for:
- Legacy Python 2.6–3.3 applications that already depend on this specific package and cannot migrate
- Maintaining existing codebases where switching drivers would require significant refactoring
- Educational projects using historical MySQL driver implementations as reference material
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
MySQL driver written in Python that enables database connections and queries to MySQL servers.
No. Do not install this package. It is abandoned, deprecated by its own maintainer, and explicitly superseded by an official version. The maintainer's own description directs users away from it. High install friction and lack of maintenance for over 2692 days make it unsuitable for any new project.
Install
mysql-connector on PyPI
pip
pip install mysql-connectoruv
uv add mysql-connectorpoetry
poetry add mysql-connectorInstalling mysql-connector
Before you install
High install friction due to source distribution. Package is abandoned—last release was 2019-04-01, over 2692 days ago. The maintainer explicitly directs users to the official version instead.
License in practice
Licensed under GNU GPLv2 with FOSS License Exception (copyleft). Use in proprietary software requires careful review of the exception terms and may impose distribution obligations.
Quickstart
pip install mysql-connector==2.2.9
import mysql.connector
conn = mysql.connector.connect(host='localhost', user='root', password='pass')
Package is abandoned and deprecated; maintainer recommends using the official mysql-connector-python package instead
Verify before relying
- Whether the FOSS License Exception permits use in closed-source projects without source disclosure
- Compatibility with Python versions beyond 3.3 listed in classifiers
- What specific compiled dependencies cause high install friction
Package facts
| License | GNU GPLv2 (with FOSS License Exception) (copyleft) |
| Python support | not specified |
| Install friction | high — source build required |
| Runtime dependencies | none |
| Maintenance | abandoned — 2,692 days since the last release |
| First released | |
| Downloads | 1,419,764/month — #3,927 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: mysql-connector-2.2.9.tar.gz
Keywords: mysql, db
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
mysql-connector-python-rfA pure-Python MySQL driver that implements the…
copyleft · top 15,000 on PyPI
MySQL-pythonMySQL-python provides a Python 2 interface to…
copyleft · top 15,000 on PyPI
mysqlThis package is a deprecated virtual wrapper…
permissive · top 15,000 on PyPI
mysql-connector-pythonMySQL Connector/Python is a PEP 249-compliant…
copyleft · top 1,000 on PyPI
mariadbMariaDB Connector/Python provides a DB API…
copyleft · top 15,000 on PyPI
mysqlclientmysqlclient provides a Python interface to…
copyleft · top 1,000 on PyPI
hopsworks-aiomysqlAsync MySQL database driver for Python asyncio…
permissive · top 15,000 on PyPI
vertica-pythonNative Python client library for connecting to…
permissive · top 5,000 on PyPI
aiomysqlaiomysql provides async/await access to MySQL…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-mysqlAdds distributed tracing to MySQL database…
permissive · top 5,000 on PyPI