🌐
MySQL
dev.mysql.com β€Ί downloads β€Ί connector β€Ί python
MySQL :: Download Connector/Python
The latest MySQL Connector/Python version is recommended for use with MySQL Server version 8.0 and higher.
🌐
PyPI
pypi.org β€Ί project β€Ί mysql-connector-python
mysql-connector-python Β· PyPI
Details for the file mysql_connector_python-9.7.0-cp314-cp314-win_amd64.whl. Download URL: mysql_connector_python-9.7.0-cp314-cp314-win_amd64.whl
      Β» pip install mysql-connector-python
    
Published Β  Apr 23, 2026
Version Β  9.7.0
🌐
PYnative
pynative.com β€Ί home β€Ί python β€Ί databases β€Ί install mysql connector python on windows, macos, linux, unix and ubuntu
Install MySQL Connector Python on Windows, MacOs, Linux, Unix and Ubuntu
March 9, 2021 - Install using Source Code Distribution ... Follow below instruction to download Platform Independent ZIP. Go to download MySQL Connector Python for windows from here...
🌐
Devart
devart.com β€Ί python β€Ί mysql β€Ί download.html
Download MySQL and MariaDB Python Connector for Windows, macOS, and Linux
Download MySQL and MariaDB Python Connector for Windows 32-bit and 64-bit, macOS 64-bit, and Linux 64-bit.
🌐
MySQL
downloads.mysql.com β€Ί archives β€Ί c-python
MySQL :: Download MySQL Connector/Python (Archived Versions)
Please note that these are old versions. New releases will have recent bug fixes and features! To download the latest release of MySQL Connector/Python, please visit MySQL Downloads.
🌐
MySQL
dev.mysql.com β€Ί doc β€Ί connector-python β€Ί en β€Ί connector-python-installation.html
MySQL :: MySQL Connector/Python Developer Guide :: 4 Connector/Python Installation
Make sure Python is installed on ... use its software management system to install it. For Microsoft Windows, a Python installer is available at the Python Download website or via the Microsoft Store....
🌐
Download.io
download.io β€Ί mysql-connector-python-download-windows.html
Download MySQL Connector/Python 2.1.5 for Windows - Download.io
Download MySQL Connector/Python 2.1.5 for Windows A database driver that provides MySQL database access for Python applications.
🌐
Softpedia
softpedia.com β€Ί windows β€Ί internet β€Ί servers β€Ί database utils β€Ί mysql connector/python
MySQL Connector/Python - Download - Softpedia
DOWNLOAD MySQL Connector/Python 9.6.0 for Windows Β· MySQL database connection Access MySQL database MySQL to Python MySQL2Pyton Connect MySQL Connection Β· This release contains no functional changes, and is published to align its version number with that of the MySQL Server 9.6.0 release.
🌐
w3resource
w3resource.com β€Ί mysql β€Ί mysql-python-connection.php
MySQL Python Connector - w3resource
Installing the Windows Connector/ODBC Driver : Select and download the MSI installer packages from http://dev.MySQL.com/downloads/connector/python/ as per your requirement.
Find elsewhere
🌐
CNET
download.cnet.com β€Ί mysql-connectorpython β€Ί 3000-10254_4-75914772.html
MySQL Connector/Python for Windows - Free download and software reviews - CNET Download
February 20, 2026 - Download MySQL Connector/Python latest version for Windows free. MySQL Connector/Python latest update: February 20, 2026
Rating: 4.9 ​ - ​ 1 votes
🌐
MySQL
dev.mysql.com β€Ί doc β€Ί connector-python β€Ί en
MySQL :: MySQL Connector/Python Developer Guide
This manual describes how to install and configure MySQL Connector/Python, a self-contained Python driver for communicating with MySQL servers, and how to use it to develop database applications.
🌐
GeeksforGeeks
geeksforgeeks.org β€Ί python β€Ί how-to-install-mysql-connector-package-in-python
How to install MySQL Connector Package in Python - GeeksforGeeks
July 12, 2025 - To install Python-mysql-connector module, one must have Python and PIP, preinstalled on their system. To check if our system already contains Python, go through the following instructions: Open the Command line(search for cmd in the Run dialog(Windows + R).
🌐
Stack Overflow
stackoverflow.com β€Ί questions β€Ί 46428848 β€Ί how-to-install-mysql-connector-for-python-on-windows-when-according-to-the-insta
How to install MySQL Connector for Python on Windows when according to the installation manager Python is not installed? - Stack Overflow
Thank zou, but unfortunately I've seen already this post, and MySQLdb is not supported by Python 3+ apparently: stackoverflow.com/questions/23376103/… 2017-09-26T16:53:30.863Z+00:00 ... I could finally do it! In case someone else goes through the same nightmare as I had, here is the solution: instead of using command line I opened up Windows Power Shell and typed ... And it succeeded in downloading and Python script doesn't throw error anymore.
🌐
Devart
docs.devart.com β€Ί python β€Ί mysql β€Ί install-the-connector-on-windows.htm
Install the connector on Windows - Python Connector for MySQL
pip install devart-mysql-connector Β· Download the zip archive. Extract the contents of the archive. Open Command Prompt. Verify that you have the pip package installer on your system using the py -m pip --version command. If you don't have it, run the following command to install pip. python ...
🌐
MySQL
dev.mysql.com β€Ί doc β€Ί dev β€Ί connector-python β€Ί latest β€Ί installation.html
Installation β€” MySQL Connector/Python X DevAPI Reference 9.7.0 documentation
Packages are available at the Connector/Python download site. For some packaging formats, there are different packages for different versions of Python; choose the one appropriate for the version of Python installed on your system.
🌐
SourceForge
sourceforge.net β€Ί projects β€Ί mysql-python
MySQL for Python download | SourceForge.net
Download MySQL for Python for free. MySQL database connector for Python programming. MySQLdb is a Python DB API-2.0-compliant interface; see PEP-249 for details.
Rating: 4.7 ​ - ​ 78 votes
🌐
MySQL Tutorial
mysqltutorial.org β€Ί home β€Ί python mysql β€Ί getting started with mysql connector/python
MySQL Connector/Python: Getting Started
January 6, 2024 - The MySQL Python Connector is available on pypi.org, therefore, you can install it using the pip command. First, open Command Prompt on Windows or Terminal on Unix-like systems.
🌐
MySQL
dev.mysql.com β€Ί doc β€Ί connector-python β€Ί en β€Ί connector-python-installation-source.html
MySQL :: MySQL Connector/Python Developer Guide :: 4.5 Installing Connector/Python from a Source Distribution
For installing the X DevAPI interface only: Protobuf C++ (version 5.29.4). ... We recommend leveraging python virtual environments to encapsulate the package installation instead of installing packages directly into the Python system environment. ... Download the latest version of the sdist of Connector/Python for the classic MySQL protocol, whose name is in the format of mysql_connector_python-x.y.z.tar.gz.
Top answer
1 of 4
18

There are two ways to install MySQL connector. The second way is preferred.

1. MySQL Installer

This is Oracle's product installer. The problem is that it is outdated. It is only aware of Python version 3.6, and nothing newer. To install for a newer version of Python, use option 2.

2. Python package manager, pip

The Python package manager comes with Python, called pip. It downloads the package from the PyPI repository and installs it in an automatic location based on what version of Python (or what virtual copy) you use to install it. The package that you want is mysql-connector-python. In fact, the official documentation says this is the recommended method for installing the MySQL Connector.

For example, on Windows, open up the Command Prompt (cmd.exe) by searching in the Start Menu. Navigate to the directory where pip is installed. Or make sure that pip's directory is included in the $PATH variable (which you can edit by searching for "PATH" in the Start Menu).

The command prompt will show you this:

PS C:\Users\Ryan> 

except instead of my username, it'll show your username, or the path you navigated to after you found pip, like "C:\blah\blah". Then use this command...

Input:

pip install mysql-connector-python

It downloads and installs it.

Results:

PS C:\Users\Ryan> pip install mysql-connector-python
Collecting mysql-connector-python
Downloading https://files.pythonhosted.org/packages/2d/65/3fc902c0f7635912800c6b935313b99b9d4426419ef7ba04f76231b24923/mysql_connector_python-8.0.12-py2.py3-none-any.whl (300kB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 307kB 1.1MB/s
Collecting protobuf>=3.0.0 (from mysql-connector-python)
Downloading https://files.pythonhosted.org/packages/77/78/a7f1ce761e2c738e209857175cd4f90a8562d1bde32868a8cd5290d58926/protobuf-3.6.1-py2.py3-none-any.whl (390kB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 399kB 1.8MB/s
Requirement already satisfied: setuptools in c:\users\ryan\appdata\local\programs\python\python37\lib\site-packages (from protobuf>=3.0.0->mysql-connector-python) (40.4.3)
Collecting six>=1.9 (from protobuf>=3.0.0->mysql-connector-python)
Using cached https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl
Installing collected packages: six, protobuf, mysql-connector-python
Successfully installed mysql-connector-python-8.0.12 protobuf-3.6.1 six-1.11.0

Afterward, you can make sure it is installed by displaying all packages that have been installed by you (not including standard libraries, which come with Python):

Input:

PS C:\Users\Ryan> pip list

Results:

Package                Version
---------------------- -------
mysql-connector-python 8.0.12
pip                    18.0
protobuf               3.6.1
setuptools             40.4.3
six                    1.11.0

To check if you installed it to the right version of Python, use pip -V. To make sure you installed it to the right copy (virtual or original), look at the file path where the package was installed:

PS C:\Users\Ryan> pip -V

Results:

pip 18.0 from c:\users\ryan\appdata\local\programs\python\python37\lib\site-packages\pip (python 3.7)

For example, in my system, it shows python37 in the folder path, so it installed it to the original Python 3.7.0 installation I have, instead of an older version or virtual environment (conda or virtualenv, etc).

To check the version using the Python executable, instead of pip:

PS C:\Users\Ryan> py -V
Python 3.7.0

If you need to install it to an older or newer Python version than the default installation, insert the version number as an option (aka. "switch") in the command, using -. For example, to select version 3.6:

py -3.6 -m pip install mysql-connector-python

The - works on both Windows and Unix-like OSs.

2 of 4
11

mysqlclient supports python3.7 officially, you can find it here :

https://pypi.python.org/pypi/mysqlclient

1)you can download , PyMySQL 0.9.2
2)extract & copy the folder pymysql into the python Lib folder
3)and for connection you can do like this(make a file for example freeman.py):

#!/usr/bin/env python

import pymysql

conn = pymysql.connect(host='localhost', port=3306, user='root', passwd='', db='freemanDB')

cur = conn.cursor()
cur.execute("SELECT * FROM users")

print(cur.description)
print()

for row in cur:
    print(row)

cur.close()
conn.close()
🌐
PyPI
pypi.org β€Ί project β€Ί mysql-connector
mysql-connector Β· PyPI
Download the file for your platform. If you're not sure which to choose, learn more about installing packages. mysql-connector-2.2.9.tar.gz (11.9 MB view details)
      Β» pip install mysql-connector
    
Published Β  Apr 01, 2019
Version Β  2.2.9