From bca3033fd48bb38f6addfd37747eb6b023a2231b Mon Sep 17 00:00:00 2001 From: deoren Date: Sat, 9 Jun 2018 21:42:29 -0500 Subject: [PATCH] Remove ref to MySQLdb, affirm mysql.connector - Remove refs to MySQLdb since it does not appear to be actively maintained (and we are not currently using it) - Add additional notes for mysql-connector-python - Upstream ref links - Note that it is actively maintained - pip installation option refs WhyAskWhy/automated-tickets#2 --- automated_tickets_lib.py | 16 ++++++++-------- references.md | 6 +++++- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/automated_tickets_lib.py b/automated_tickets_lib.py index f35ab60..e75f2ae 100644 --- a/automated_tickets_lib.py +++ b/automated_tickets_lib.py @@ -21,14 +21,14 @@ # Modules - Third party ######################################## -# Third-party module -# https://pypi.python.org/pypi/MySQL-python/1.2.5 -# apt-get install python-mysqldb -#import MySQLdb - -# Upstream module, recommended by MariaDB documentation -# https://dev.mysql.com/downloads/repo/apt/ -# apt-get install mysql-connector-python +# Upstream module, actively maintained and official recommendation +# of the MariaDB project (per their documentation). +# Available via OS packages (including apt repo) or pip. +# +# Examples: +# +# * sudo apt-get install mysql-connector-python +# * pip install mysql-connector-python --user import mysql.connector as mysql diff --git a/references.md b/references.md index c79c2eb..3db5664 100644 --- a/references.md +++ b/references.md @@ -22,7 +22,11 @@ - https://dev.mysql.com/downloads/repo/apt/ - https://dev.mysql.com/doc/mysql-apt-repo-quick-guide/en/ -- https://dev.mysql.com/downloads/connector/python/2.1.html + +- https://dev.mysql.com/doc/connector-python/en/ +- https://pypi.org/project/mysql-connector-python/ + + ### SQLite