Skip to content

Commit

Permalink
Remove ref to MySQLdb, affirm mysql.connector
Browse files Browse the repository at this point in the history
- 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 #2
  • Loading branch information
deoren committed Jun 10, 2018
1 parent e405764 commit bca3033
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
16 changes: 8 additions & 8 deletions automated_tickets_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
6 changes: 5 additions & 1 deletion references.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit bca3033

Please sign in to comment.