mysql
Virtual package for MySQL-python
What it is and what it does
This is a virtual package—a thin wrapper that exists only to redirect pip installations to mysqlclient (for Python 3) or MySQL-python (for Python 2). It contains no actual MySQL driver code. The package was created as a compatibility shim but has been abandoned since 2021 and is explicitly marked as deprecated by its maintainer.
The package's own documentation warns users not to install it and to depend directly on mysqlclient instead. While installation itself is frictionless and the package carries no known vulnerabilities, using it adds an unnecessary layer of indirection and ties your project to unmaintained code. For any new project, or any existing project still using this wrapper, the correct action is to remove this dependency and import mysqlclient directly.
Use it for:
- Legacy projects that have not yet migrated away from this deprecated virtual package wrapper.
- Transitional builds where the package is being phased out in favor of a direct mysqlclient dependency.
- Historical reference or documentation of how Python MySQL driver packaging evolved.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
This package is a deprecated virtual wrapper that redirects to mysqlclient for Python 3 (or MySQL-python for Python 2). It provides no MySQL functionality itself—it exists only to route installations to the actual driver.
No. Do not install this package. The maintainer explicitly warns against it in the package description itself. Install mysqlclient directly instead. This package is abandoned (last release 2021-05-25) and serves no purpose except to redirect to the real driver—a layer of indirection that adds no value and ties your project to unmaintained code.
Install
mysql on PyPI
pip
pip install mysqluv
uv add mysqlpoetry
poetry add mysqlInstalling mysql
Before you install
Installation is low-friction, but the package is abandoned (last release 2021-05-25). The maintainer explicitly warns against using this package and recommends depending directly on mysqlclient instead. The single runtime dependency is mysqlclient.
License in practice
Licensed under MIT (permissive), so there are no legal restrictions on use. However, the permissive license does not offset the package's abandoned status and explicit deprecation warning.
Quickstart
# Do not install this package. Instead:
pip install mysqlclient
import mysqlclient
This package is deprecated and should not be used. Install mysqlclient directly instead.
Verify before relying
- Whether any projects still depend on this package and would break if it were removed from PyPI.
- Current state of the GitHub repository and whether it accepts maintenance contributions.
- Specific usage patterns where this virtual package wrapper would still be necessary or beneficial.
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — mysqlclient |
| Maintenance | abandoned — 1,907 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 232,521/month — #9,064 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: mysql-0.0.3-py3-none-any.whl
Tags
More Database packages
psycopg2-binary is a PostgreSQL database…
copyleft · top 1,000 on PyPI
redisPython client library for connecting to and…
permissive · top 1,000 on PyPI
ydbYDB Python SDK is the official client library…
permissive · top 1,000 on PyPI
snowflake-connector-pythonConnects Python applications to Snowflake data…
permissive · top 1,000 on PyPI
sqlparsesqlparse tokenizes SQL text into a tree of…
permissive · top 1,000 on PyPI
dbt-adaptersProvides base adapter protocols and shared…
permissive · top 1,000 on PyPI
mysqlclientmysqlclient provides a Python interface to…
copyleft · top 1,000 on PyPI
mysql-connectorMySQL driver written in Python that enables…
copyleft · top 5,000 on PyPI
MySQL-pythonMySQL-python provides a Python 2 interface to…
copyleft · top 15,000 on PyPI
types-mysqlclientProvides type annotations for the mysqlclient…
permissive · top 15,000 on PyPI
mysql-connector-python-rfA pure-Python MySQL driver that implements the…
copyleft · top 15,000 on PyPI
mysql-connector-pythonMySQL Connector/Python is a PEP 249-compliant…
copyleft · top 1,000 on PyPI
opentelemetry-instrumentation-mysqlclientAdds OpenTelemetry tracing instrumentation to…
permissive · top 5,000 on PyPI
mariadbMariaDB Connector/Python provides a DB API…
copyleft · top 15,000 on PyPI
types-PyMySQLProvides type stubs for PyMySQL to enable…
permissive · top 5,000 on PyPI
PyMySQLPyMySQL is a pure-Python MySQL and MariaDB…
permissive · top 1,000 on PyPI