--- id: mysql-python version: "1.2.5" license: GPL license_treatment: copyleft maintenance: abandoned --- # MySQL-python — Python interface to MySQL License: copyleft · Maintenance: abandoned · Downloads: 148.4K/mo ## What it is and what it does MySQL-python is a database adapter that lets Python 2 applications connect to and query MySQL databases. It implements the Python Database API version 2.0 standard, meaning code written against it follows a common interface shared with other database drivers. The package is a thin wrapper around the MySQL C client library, providing thread-safe access to MySQL 3.23 through 5.5. This package is effectively obsolete. It was last released in 2014 and does not support Python 3. The repository shows minimal activity since 2020. For any new project, modern alternatives are the correct choice. Use it for: - Maintaining legacy Python 2 applications that already depend on MySQL-python and cannot be migrated - Running existing codebases frozen at Python 2.7 that interact with MySQL databases - Educational purposes to understand how Python database adapters implement the Database API standard ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. MySQL-python provides a Python 2 interface to MySQL databases, implementing the Python Database API specification for executing queries and managing connections. No. Do not install for new projects—Python 2 reached end-of-life years ago, and MySQL-python has been abandoned since 2014. If you must maintain legacy Python 2 code already using MySQL-python, keep the existing version pinned. For any new work, use a maintained alternative. ## Install pip install mysql-python uv add mysql-python poetry add mysql-python ## Installing MySQL-python Before you install: Installation requires compilation against MySQL client libraries, creating high friction on most systems. The package is abandoned—last release was 2014-01-02 and last commit 2020-10-26—making it unsuitable for new projects. License in practice: Licensed under GPL (copyleft), which requires any derivative work or linked application to also be GPL-licensed. This creates legal constraints for proprietary software. Quickstart: pip install MySQL-python==1.2.5 # Then in Python code: conn = connect(host='localhost', user='user', passwd='password', db='database') cursor = conn.cursor() cursor.execute('SELECT * FROM table') results = cursor.fetchall() Requires MySQL client development libraries (libmysqlclient-dev on Linux) and a C compiler; Python 2.7 only (Python 3 not supported). Verify before relying: - Whether MySQL client development headers are available on the target system - Current compatibility with modern MySQL server versions beyond 5.5 - Whether the package works reliably on current Python 2.7 patch releases - Availability of maintained forks or alternative packages for Python 3 migration ## Package facts - License: GPL (copyleft) - Python support: unspecified - Install friction: high - Maintenance: abandoned - Downloads: 148.4K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags python mysql database driver, mysql connector python, python mysql interface, mysql client library python, relational database access python, database adapter python, legacy, python2-only, abandoned [View on SkillFed](https://skillfed.io/packages/mysql-python) · [View on PyPI](https://pypi.org/project/mysql-python/)