python-mysql-connector-python
Port variant v12
Summary MySQL server driver (3.12)
Package version 9.3.0
Homepage https://dev.mysql.com/doc/connector-python/en/
Keywords python
Maintainer Python Automaton
License Not yet specified
Other variants v13
Ravenports Buildsheet | History
Ravensource Port Directory | History
Last modified 21 APR 2025, 04:43:27 UTC
Port created 21 FEB 2025, 19:12:19 UTC
Subpackage Descriptions
single MySQL Connector/Python ====================== 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: * [RPM] * [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]. .. code-block:: bash $ pip install mysql-connector-python ++++++++++++++++++++ Installation Options ++++++++++++++++++++ Connector packages included in MySQL Connector/Python allow you to install optional dependencies to unleash certain functionalities. .. code-block:: bash # 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 Sample Code ----------- .. code:: python import mysql.connector # Connect to server cnx = mysql.connector.connect( host="127.0.0.1", port=3306, user="mike", password="s3cre3t!") # Get a cursor cur = cnx.cursor() # Execute a query cur.execute("SELECT CURDATE()")
Configuration Switches (platform-specific settings discarded)
PY312 ON Build using Python 3.12 PY313 OFF Build using Python 3.13
Package Dependencies by Type
Build (only) python312:dev:std
python-pip:single:v12
autoselect-python:single:std
Build and Runtime python312:primary:std
Download groups
main mirror://PYPIWHL/23/1d/8c2c6672094b538f4881f7714e5332fdcddd05a7e196cbc9eb4a9b5e9a45
Distribution File Information
8ab7719d614cf5463521082fab86afc21ada504b538166090e00eeaa1ff729bc 399302 python-src/mysql_connector_python-9.3.0-py2.py3-none-any.whl
Ports that require python-mysql-connector-python:v12
ravensys-vuln:std Ravenports Vulnerability Database