MySQL Connector/Python enables Python programs to access MySQL databases, using
an API that is compliant with the
Python Database API Specification v2.0
(PEP 249)
- We refer to it as the
Classic API
.
Features
Asynchronous Connectivity
C-extension
Telemetry
Installation
Connector/Python contains the classic and XDevAPI connector APIs, which are
installed separately. Any of these can be installed from a binary
or source distribution.
Binaries are distributed in the following package formats:
WHEEL
On the other hand, the source code is distributed as a compressed file
from which a wheel package can be built.
The recommended way to install Connector/Python is via
pip
,
which relies on WHEEL packages. For such a reason, it is the installation procedure
that is going to be described moving forward.
Please, refer to the official MySQL documentation
Connector/Python Installation
to
know more about installing from an RPM, or building and installing a WHEEL package from
a source distribution.
Before installing a package with
pip
, it is strongly suggested
to have the most recent
pip
version installed on your system.
If your system already has
pip
installed, you might need to update it. Or you can use
the
standalone pip installer
.
$ pip install mysql-connector-python
Installation Options
Connector packages included in MySQL Connector/Python allow you to install
optional dependencies to unleash certain functionalities.
# 3rd party packages to unleash the telemetry functionality are installed
$ pip install mysql-connector-python[ telemetry]
This installation option can be seen as a shortcut to install all the
dependencies needed by a particular feature. Mind that this is optional
and you are free to install the required dependencies by yourself.
Available options:
dns-srv
gssapi
webauthn
telemetry
# Fetch one result
row
=
cur
.
fetchone
()
print
(
"Current date is:
{0}
"
.
format
(
row
[
0
]))
# Close connection
cnx
.
close
()
Additional Resources
MySQL Connector/Python Developer Guide
MySQL Connector/Python Forum
MySQL Public Bug Tracker
Slack
(
Sign-up
required if you do not have an Oracle account)
Stack Overflow
Oracle Blogs
Contributing
There are a few ways to contribute to the Connector/Python code. Please refer
to the
contributing guidelines
for additional information.
License
Please refer to the
README.txt
and
LICENSE.txt
files, available in this repository, for further details.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about
installing packages
.
Source Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about
wheel file names
.
The dropdown lists show the available interpreters, ABIs, and platforms.
Enable javascript to be able to filter the list of wheel files.
Copy a direct link to the current filters
mysql_connector_python-9.4.0-cp313-cp313-manylinux_2_28_aarch64.whl
(33.5 MB
view details
)
Uploaded
Jul 22, 2025
CPython 3.13
manylinux: glibc 2.28+ ARM64
mysql_connector_python-9.4.0-cp312-cp312-manylinux_2_28_aarch64.whl
(33.5 MB
view details
)
Uploaded
Jul 22, 2025
CPython 3.12
manylinux: glibc 2.28+ ARM64
mysql_connector_python-9.4.0-cp311-cp311-manylinux_2_28_aarch64.whl
(33.5 MB
view details
)
Uploaded
Jul 22, 2025
CPython 3.11
manylinux: glibc 2.28+ ARM64
mysql_connector_python-9.4.0-cp310-cp310-manylinux_2_28_aarch64.whl
(33.5 MB
view details
)
Uploaded
Jul 22, 2025
CPython 3.10
manylinux: glibc 2.28+ ARM64
File details
Details for the file
mysql_connector_python-9.4.0-cp313-cp313-win_amd64.whl
.
File metadata
Download URL:
mysql_connector_python-9.4.0-cp313-cp313-win_amd64.whl
Upload date:
Jul 22, 2025
Size: 16.4 MB
Tags: CPython 3.13, Windows x86-64
Uploaded using Trusted Publishing? No
Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
Hashes for mysql_connector_python-9.4.0-cp313-cp313-win_amd64.whl
Algorithm
Hash digest
File details
Details for the file
mysql_connector_python-9.4.0-cp313-cp313-manylinux_2_28_x86_64.whl
.
File metadata
Download URL:
mysql_connector_python-9.4.0-cp313-cp313-manylinux_2_28_x86_64.whl
Upload date:
Jul 22, 2025
Size: 33.9 MB
Tags: CPython 3.13, manylinux: glibc 2.28+ x86-64
Uploaded using Trusted Publishing? No
Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
Hashes for mysql_connector_python-9.4.0-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm
Hash digest
File details
Details for the file
mysql_connector_python-9.4.0-cp313-cp313-manylinux_2_28_aarch64.whl
.
File metadata
Download URL:
mysql_connector_python-9.4.0-cp313-cp313-manylinux_2_28_aarch64.whl
Upload date:
Jul 22, 2025
Size: 33.5 MB
Tags: CPython 3.13, manylinux: glibc 2.28+ ARM64
Uploaded using Trusted Publishing? No
Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
Hashes for mysql_connector_python-9.4.0-cp313-cp313-manylinux_2_28_aarch64.whl
Algorithm
Hash digest
File details
Details for the file
mysql_connector_python-9.4.0-cp313-cp313-macosx_14_0_x86_64.whl
.
File metadata
Download URL:
mysql_connector_python-9.4.0-cp313-cp313-macosx_14_0_x86_64.whl
Upload date:
Jul 22, 2025
Size: 18.4 MB
Tags: CPython 3.13, macOS 14.0+ x86-64
Uploaded using Trusted Publishing? No
Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
Hashes for mysql_connector_python-9.4.0-cp313-cp313-macosx_14_0_x86_64.whl
Algorithm
Hash digest
File details
Details for the file
mysql_connector_python-9.4.0-cp313-cp313-macosx_14_0_arm64.whl
.
File metadata
Download URL:
mysql_connector_python-9.4.0-cp313-cp313-macosx_14_0_arm64.whl
Upload date:
Jul 22, 2025
Size: 17.5 MB
Tags: CPython 3.13, macOS 14.0+ ARM64
Uploaded using Trusted Publishing? No
Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
Hashes for mysql_connector_python-9.4.0-cp313-cp313-macosx_14_0_arm64.whl
Algorithm
Hash digest
File details
Details for the file
mysql_connector_python-9.4.0-cp312-cp312-win_amd64.whl
.
File metadata
Download URL:
mysql_connector_python-9.4.0-cp312-cp312-win_amd64.whl
Upload date:
Jul 22, 2025
Size: 16.4 MB
Tags: CPython 3.12, Windows x86-64
Uploaded using Trusted Publishing? No
Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
Hashes for mysql_connector_python-9.4.0-cp312-cp312-win_amd64.whl
Algorithm
Hash digest
File details
Details for the file
mysql_connector_python-9.4.0-cp312-cp312-manylinux_2_28_x86_64.whl
.
File metadata
Download URL:
mysql_connector_python-9.4.0-cp312-cp312-manylinux_2_28_x86_64.whl
Upload date:
Jul 22, 2025
Size: 33.9 MB
Tags: CPython 3.12, manylinux: glibc 2.28+ x86-64
Uploaded using Trusted Publishing? No
Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
Hashes for mysql_connector_python-9.4.0-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm
Hash digest
File details
Details for the file
mysql_connector_python-9.4.0-cp312-cp312-manylinux_2_28_aarch64.whl
.
File metadata
Download URL:
mysql_connector_python-9.4.0-cp312-cp312-manylinux_2_28_aarch64.whl
Upload date:
Jul 22, 2025
Size: 33.5 MB
Tags: CPython 3.12, manylinux: glibc 2.28+ ARM64
Uploaded using Trusted Publishing? No
Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
Hashes for mysql_connector_python-9.4.0-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm
Hash digest
File details
Details for the file
mysql_connector_python-9.4.0-cp312-cp312-macosx_14_0_x86_64.whl
.
File metadata
Download URL:
mysql_connector_python-9.4.0-cp312-cp312-macosx_14_0_x86_64.whl
Upload date:
Jul 22, 2025
Size: 18.4 MB
Tags: CPython 3.12, macOS 14.0+ x86-64
Uploaded using Trusted Publishing? No
Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
Hashes for mysql_connector_python-9.4.0-cp312-cp312-macosx_14_0_x86_64.whl
Algorithm
Hash digest
File details
Details for the file
mysql_connector_python-9.4.0-cp312-cp312-macosx_14_0_arm64.whl
.
File metadata
Download URL:
mysql_connector_python-9.4.0-cp312-cp312-macosx_14_0_arm64.whl
Upload date:
Jul 22, 2025
Size: 17.5 MB
Tags: CPython 3.12, macOS 14.0+ ARM64
Uploaded using Trusted Publishing? No
Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
Hashes for mysql_connector_python-9.4.0-cp312-cp312-macosx_14_0_arm64.whl
Algorithm
Hash digest
File details
Details for the file
mysql_connector_python-9.4.0-cp311-cp311-win_amd64.whl
.
File metadata
Download URL:
mysql_connector_python-9.4.0-cp311-cp311-win_amd64.whl
Upload date:
Jul 22, 2025
Size: 16.4 MB
Tags: CPython 3.11, Windows x86-64
Uploaded using Trusted Publishing? No
Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
Hashes for mysql_connector_python-9.4.0-cp311-cp311-win_amd64.whl
Algorithm
Hash digest
File details
Details for the file
mysql_connector_python-9.4.0-cp311-cp311-manylinux_2_28_x86_64.whl
.
File metadata
Download URL:
mysql_connector_python-9.4.0-cp311-cp311-manylinux_2_28_x86_64.whl
Upload date:
Jul 22, 2025
Size: 33.9 MB
Tags: CPython 3.11, manylinux: glibc 2.28+ x86-64
Uploaded using Trusted Publishing? No
Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
Hashes for mysql_connector_python-9.4.0-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm
Hash digest
File details
Details for the file
mysql_connector_python-9.4.0-cp311-cp311-manylinux_2_28_aarch64.whl
.
File metadata
Download URL:
mysql_connector_python-9.4.0-cp311-cp311-manylinux_2_28_aarch64.whl
Upload date:
Jul 22, 2025
Size: 33.5 MB
Tags: CPython 3.11, manylinux: glibc 2.28+ ARM64
Uploaded using Trusted Publishing? No
Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
Hashes for mysql_connector_python-9.4.0-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm
Hash digest
File details
Details for the file
mysql_connector_python-9.4.0-cp311-cp311-macosx_14_0_x86_64.whl
.
File metadata
Download URL:
mysql_connector_python-9.4.0-cp311-cp311-macosx_14_0_x86_64.whl
Upload date:
Jul 22, 2025
Size: 18.4 MB
Tags: CPython 3.11, macOS 14.0+ x86-64
Uploaded using Trusted Publishing? No
Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
Hashes for mysql_connector_python-9.4.0-cp311-cp311-macosx_14_0_x86_64.whl
Algorithm
Hash digest
File details
Details for the file
mysql_connector_python-9.4.0-cp311-cp311-macosx_14_0_arm64.whl
.
File metadata
Download URL:
mysql_connector_python-9.4.0-cp311-cp311-macosx_14_0_arm64.whl
Upload date:
Jul 22, 2025
Size: 17.5 MB
Tags: CPython 3.11, macOS 14.0+ ARM64
Uploaded using Trusted Publishing? No
Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
Hashes for mysql_connector_python-9.4.0-cp311-cp311-macosx_14_0_arm64.whl
Algorithm
Hash digest
File details
Details for the file
mysql_connector_python-9.4.0-cp310-cp310-win_amd64.whl
.
File metadata
Download URL:
mysql_connector_python-9.4.0-cp310-cp310-win_amd64.whl
Upload date:
Jul 22, 2025
Size: 16.4 MB
Tags: CPython 3.10, Windows x86-64
Uploaded using Trusted Publishing? No
Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
Hashes for mysql_connector_python-9.4.0-cp310-cp310-win_amd64.whl
Algorithm
Hash digest
File details
Details for the file
mysql_connector_python-9.4.0-cp310-cp310-manylinux_2_28_x86_64.whl
.
File metadata
Download URL:
mysql_connector_python-9.4.0-cp310-cp310-manylinux_2_28_x86_64.whl
Upload date:
Jul 22, 2025
Size: 33.9 MB
Tags: CPython 3.10, manylinux: glibc 2.28+ x86-64
Uploaded using Trusted Publishing? No
Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
Hashes for mysql_connector_python-9.4.0-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm
Hash digest
File details
Details for the file
mysql_connector_python-9.4.0-cp310-cp310-manylinux_2_28_aarch64.whl
.
File metadata
Download URL:
mysql_connector_python-9.4.0-cp310-cp310-manylinux_2_28_aarch64.whl
Upload date:
Jul 22, 2025
Size: 33.5 MB
Tags: CPython 3.10, manylinux: glibc 2.28+ ARM64
Uploaded using Trusted Publishing? No
Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
Hashes for mysql_connector_python-9.4.0-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm
Hash digest
File details
Details for the file
mysql_connector_python-9.4.0-cp310-cp310-macosx_14_0_x86_64.whl
.
File metadata
Download URL:
mysql_connector_python-9.4.0-cp310-cp310-macosx_14_0_x86_64.whl
Upload date:
Jul 22, 2025
Size: 18.4 MB
Tags: CPython 3.10, macOS 14.0+ x86-64
Uploaded using Trusted Publishing? No
Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
Hashes for mysql_connector_python-9.4.0-cp310-cp310-macosx_14_0_x86_64.whl
Algorithm
Hash digest
File details
Details for the file
mysql_connector_python-9.4.0-cp310-cp310-macosx_14_0_arm64.whl
.
File metadata
Download URL:
mysql_connector_python-9.4.0-cp310-cp310-macosx_14_0_arm64.whl
Upload date:
Jul 22, 2025
Size: 17.5 MB
Tags: CPython 3.10, macOS 14.0+ ARM64
Uploaded using Trusted Publishing? No
Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
Hashes for mysql_connector_python-9.4.0-cp310-cp310-macosx_14_0_arm64.whl
Algorithm
Hash digest
File details
Details for the file
mysql_connector_python-9.4.0-cp39-cp39-manylinux_2_28_x86_64.whl
.
File metadata
Download URL:
mysql_connector_python-9.4.0-cp39-cp39-manylinux_2_28_x86_64.whl
Upload date:
Jul 22, 2025
Size: 33.9 MB
Tags: CPython 3.9, manylinux: glibc 2.28+ x86-64
Uploaded using Trusted Publishing? No
Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
Hashes for mysql_connector_python-9.4.0-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm
Hash digest
File details
Details for the file
mysql_connector_python-9.4.0-cp39-cp39-manylinux_2_28_aarch64.whl
.
File metadata
Download URL:
mysql_connector_python-9.4.0-cp39-cp39-manylinux_2_28_aarch64.whl
Upload date:
Jul 22, 2025
Size: 33.5 MB
Tags: CPython 3.9, manylinux: glibc 2.28+ ARM64
Uploaded using Trusted Publishing? No
Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
Hashes for mysql_connector_python-9.4.0-cp39-cp39-manylinux_2_28_aarch64.whl
Algorithm
Hash digest
File details
Details for the file
mysql_connector_python-9.4.0-cp39-cp39-macosx_14_0_x86_64.whl
.
File metadata
Download URL:
mysql_connector_python-9.4.0-cp39-cp39-macosx_14_0_x86_64.whl
Upload date:
Jul 22, 2025
Size: 18.4 MB
Tags: CPython 3.9, macOS 14.0+ x86-64
Uploaded using Trusted Publishing? No
Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
Hashes for mysql_connector_python-9.4.0-cp39-cp39-macosx_14_0_x86_64.whl
Algorithm
Hash digest
File details
Details for the file
mysql_connector_python-9.4.0-cp39-cp39-macosx_14_0_arm64.whl
.
File metadata
Download URL:
mysql_connector_python-9.4.0-cp39-cp39-macosx_14_0_arm64.whl
Upload date:
Jul 22, 2025
Size: 17.5 MB
Tags: CPython 3.9, macOS 14.0+ ARM64
Uploaded using Trusted Publishing? No
Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
Hashes for mysql_connector_python-9.4.0-cp39-cp39-macosx_14_0_arm64.whl
Algorithm
Hash digest