<jupyter_start><jupyter_text>Building Python-MySQL Connector to ApolloThis notebook will keep track of the master python script for accessing the Apollo server and generating/modifying/updating the SEREB alignment database. A simple code that prompts the user for username and password to connect to Apollo. Must be logged in the GaTech VPN first!Prerequisites:1. Python32. mysql.connector from [here](https://dev.mysql.com/downloads/connector/python/) (for wsl you want the **platform independent distributions** mysql-connector-python-[VERSION].tar.gz)Then we execute a simple SELECT statement to check if we are actually getting anything through.**Should add proper checks for wrong *uname* and *password* Like [here](https://dev.mysql.com/doc/connector-python/en/connector-python-example-connecting.html) to handle connection errors.**<jupyter_code>import mysql.connector
import getpass

uname = input("User name: ")
pw = getpass.getpass("Password: ")
cnx = mysql.connector.connect(user=uname, password=pw, host='192.168.127.12', database='SEREB')
cursor = cnx.cursor()
query = ("SELECT * FROM SEREB.Species")
cursor.execute(query)
print(cursor.fetchall()[0])
cnx.commit()
cnx.close()<jupyter_output>User name: vchivukula
Password: ········
(1148, None, 'Synechocystis sp. PCC 6803 ', None)
{'fraction_non_alphanumeric': 0.11591962905718702, 'fraction_numerical': 0.01777434312210201, 'mean_word_length': 6.038043478260869, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '227002', 'license': 'MIT', 'n_tokens_mistral': 402, 'n_tokens_neox': 372, 'n_words': 124, 'path': 'populate_db/Notebooks/.ipynb_checkpoints/Python-connector-checkpoint.ipynb', 'repo_name': 'LDWLab/DESIRE', 'size': '1293'}