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
The recommended way to install Connector/Python is via
pip
.
Make sure you have a 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
fido2
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
Hashes
for mysql-connector-python-9.1.0.tar.gz
Hashes for mysql-connector-python-9.1.0.tar.gz
Algorithm
Hash digest
Hashes
for mysql_connector_python-9.1.0-py2.py3-none-any.whl
Hashes for mysql_connector_python-9.1.0-py2.py3-none-any.whl
Algorithm
Hash digest
Hashes
for mysql_connector_python-9.1.0-cp313-cp313-win_amd64.whl
Hashes for mysql_connector_python-9.1.0-cp313-cp313-win_amd64.whl
Algorithm
Hash digest
Hashes
for mysql_connector_python-9.1.0-cp313-cp313-manylinux_2_28_x86_64.whl
Hashes for mysql_connector_python-9.1.0-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm
Hash digest
Hashes
for mysql_connector_python-9.1.0-cp313-cp313-manylinux_2_28_aarch64.whl
Hashes for mysql_connector_python-9.1.0-cp313-cp313-manylinux_2_28_aarch64.whl
Algorithm
Hash digest
Hashes
for mysql_connector_python-9.1.0-cp313-cp313-macosx_13_0_x86_64.whl
Hashes for mysql_connector_python-9.1.0-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm
Hash digest
Hashes
for mysql_connector_python-9.1.0-cp313-cp313-macosx_13_0_arm64.whl
Hashes for mysql_connector_python-9.1.0-cp313-cp313-macosx_13_0_arm64.whl
Algorithm
Hash digest
Hashes
for mysql_connector_python-9.1.0-cp312-cp312-win_amd64.whl
Hashes for mysql_connector_python-9.1.0-cp312-cp312-win_amd64.whl
Algorithm
Hash digest
Hashes
for mysql_connector_python-9.1.0-cp312-cp312-manylinux_2_28_x86_64.whl
Hashes for mysql_connector_python-9.1.0-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm
Hash digest
Hashes
for mysql_connector_python-9.1.0-cp312-cp312-manylinux_2_28_aarch64.whl
Hashes for mysql_connector_python-9.1.0-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm
Hash digest
Hashes
for mysql_connector_python-9.1.0-cp312-cp312-macosx_13_0_x86_64.whl
Hashes for mysql_connector_python-9.1.0-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm
Hash digest
Hashes
for mysql_connector_python-9.1.0-cp312-cp312-macosx_13_0_arm64.whl
Hashes for mysql_connector_python-9.1.0-cp312-cp312-macosx_13_0_arm64.whl
Algorithm
Hash digest
Hashes
for mysql_connector_python-9.1.0-cp311-cp311-win_amd64.whl
Hashes for mysql_connector_python-9.1.0-cp311-cp311-win_amd64.whl
Algorithm
Hash digest
Hashes
for mysql_connector_python-9.1.0-cp311-cp311-manylinux_2_28_x86_64.whl
Hashes for mysql_connector_python-9.1.0-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm
Hash digest
Hashes
for mysql_connector_python-9.1.0-cp311-cp311-manylinux_2_28_aarch64.whl
Hashes for mysql_connector_python-9.1.0-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm
Hash digest
Hashes
for mysql_connector_python-9.1.0-cp311-cp311-macosx_13_0_x86_64.whl
Hashes for mysql_connector_python-9.1.0-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm
Hash digest
Hashes
for mysql_connector_python-9.1.0-cp311-cp311-macosx_13_0_arm64.whl
Hashes for mysql_connector_python-9.1.0-cp311-cp311-macosx_13_0_arm64.whl
Algorithm
Hash digest
Hashes
for mysql_connector_python-9.1.0-cp310-cp310-win_amd64.whl
Hashes for mysql_connector_python-9.1.0-cp310-cp310-win_amd64.whl
Algorithm
Hash digest
Hashes
for mysql_connector_python-9.1.0-cp310-cp310-manylinux_2_28_x86_64.whl
Hashes for mysql_connector_python-9.1.0-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm
Hash digest
Hashes
for mysql_connector_python-9.1.0-cp310-cp310-manylinux_2_28_aarch64.whl
Hashes for mysql_connector_python-9.1.0-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm
Hash digest
Hashes
for mysql_connector_python-9.1.0-cp310-cp310-macosx_13_0_x86_64.whl
Hashes for mysql_connector_python-9.1.0-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm
Hash digest
Hashes
for mysql_connector_python-9.1.0-cp310-cp310-macosx_13_0_arm64.whl
Hashes for mysql_connector_python-9.1.0-cp310-cp310-macosx_13_0_arm64.whl
Algorithm
Hash digest
Hashes
for mysql_connector_python-9.1.0-cp39-cp39-win_amd64.whl
Hashes for mysql_connector_python-9.1.0-cp39-cp39-win_amd64.whl
Algorithm
Hash digest
Hashes
for mysql_connector_python-9.1.0-cp39-cp39-manylinux_2_28_x86_64.whl
Hashes for mysql_connector_python-9.1.0-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm
Hash digest
Hashes
for mysql_connector_python-9.1.0-cp39-cp39-manylinux_2_28_aarch64.whl
Hashes for mysql_connector_python-9.1.0-cp39-cp39-manylinux_2_28_aarch64.whl
Algorithm
Hash digest
Hashes
for mysql_connector_python-9.1.0-cp39-cp39-macosx_13_0_x86_64.whl
Hashes for mysql_connector_python-9.1.0-cp39-cp39-macosx_13_0_x86_64.whl
Algorithm
Hash digest
Hashes
for mysql_connector_python-9.1.0-cp39-cp39-macosx_13_0_arm64.whl
Hashes for mysql_connector_python-9.1.0-cp39-cp39-macosx_13_0_arm64.whl
Algorithm
Hash digest
"PyPI", "Python Package Index", and the blocks logos are registered
trademarks
of the
Python Software Foundation
.
© 2024
Python Software Foundation
Site map