data_collection.py
def inputData():
    """
    currently puts data in a localhost db
    """
    import mysql.connector

    config = {
        'user': 'testUser',
        'password': 'anything',
        'host': '127.0.0.1',
        'database': 'TestOBA'
    }

    try:
        cnx = mysql.connector.connect(**config)
        test_sql(cnx)
    except mysql.connector.Error as err:
        if err.errno == errorcode.ER_ACCESS_DENIED_ERROR:
            print("Something is wrong with your user name or password")
        elif err.errno == errorcode.ER_BAD_DB_ERROR:
            print("Database does not exist")
        else:
            print(err)
    else:
        cnx.close()

    currently puts data in a localhost db
    
currently puts data in a localhost db
currently puts data in a localhost db
def inputData():
    import mysql.connector
    config = {
        'user': 'testUser',
        'password': 'anything',
        'host': '127.0.0.1',
        'database': 'TestOBA'
    }
    try:
        cnx = mysql.connector.connect(**config)
        test_sql(cnx)
    except mysql.connector.Error as err:
        if err.errno == errorcode.ER_ACCESS_DENIED_ERROR:
            print("Something is wrong with your user name or password")
        elif err.errno == errorcode.ER_BAD_DB_ERROR:
            print("Database does not exist")
        else:
            print(err)
    else:
        cnx.close()
def inputData ( ) : import mysql . connector config = { 'user' : 'testUser' , 'password' : 'anything' , 'host' : '127.0.0.1' , 'database' : 'TestOBA' } try : cnx = mysql . connector . connect ( ** config ) test_sql ( cnx ) except mysql . connector . Error as err : if err . errno == errorcode . ER_ACCESS_DENIED_ERROR : print ( "Something is wrong with your user name or password" ) elif err . errno == errorcode . ER_BAD_DB_ERROR : print ( "Database does not exist" ) else : print ( err ) else : cnx . close ( )
currently puts data in a localhost db
currently puts data in a localhost db
"""
    currently puts data in a localhost db
    """