python-mysql-connector-python
Port variant v12
Summary MySQL server driver (3.12)
Package version 9.2.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 FEB 2025, 19:12:19 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 ------------ 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]. .. 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()") # 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
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/55/aa/0ff1b80fcce28abb7ce53c1d3d14ebb28fb4206ca561480cb8b7d54163ad
Distribution File Information
d007c05a48fc076e5ac7ad3d76e332fa5b0e885853c2da80071ade2d6e01aba5 398150 python-src/mysql_connector_python-9.2.0-py2.py3-none-any.whl
Ports that require python-mysql-connector-python:v12
ravensys-vuln:std Ravenports Vulnerability Database