skillfed

mysql-connector

MySQL driver written in Python

mysql-connector v2.2.9 1.4M downloads/30d#3,927 on PyPI
Copyleft license GNU GPLv2 (with FOSS License Exception) Abandoned released

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-connector

uv

uv add mysql-connector

poetry

poetry add mysql-connector

Installing 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

Development Status :: 5 - Production/StableEnvironment :: Other EnvironmentIntended Audience :: DevelopersIntended Audience :: EducationIntended Audience :: Information TechnologyIntended Audience :: System AdministratorsLicense :: OSI Approved :: GNU General Public License (GPL)Operating System :: OS IndependentProgramming Language :: Python :: 2.6Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.1Programming Language :: Python :: 3.2Programming Language :: Python :: 3.3Topic :: DatabaseTopic :: Software DevelopmentTopic :: Software Development :: Libraries :: Application FrameworksTopic :: Software Development :: Libraries :: Python Modules

Tags

mysql python drivermysql database connectorpython mysql clientmysql db connectionpython mysql query
deprecatedabandoned

More Software Development packages