just wanna ask how do you reopen the connection after closing it?
i have this script
cursor.execute(add_data, dummy_data)
cnx = mysql.connector.connect(user='',
password ='',host='',
database='')
cursor = cnx.cursor()
add_data = insert statement
dummy_data = dictionary of data
cursor.execute(add_data, dummy_data)
cnx.commit()
cnx.close()
After inserting one set of values i cannot insert anymore.
This is the error : "OperationalError: 2055: Lost connection to MySQL server at system error 9: Bad file descriptor"
thanks in advance!