I have been trying to insert into a MySQL database from python using the MySQLdb interface. While I have been able to successfully execute select queries, my insert queries do nothing. They return no errors, but also do not add anything to the database.
I simplified my program down to just this.
db = MySQLdb.connect(host='127.0.0.1',user=...,passwd=...,db=...)
cursor = db.cursor()
cursor.execute("""INSERT INTO user_event_log (username, major_event_id, minor_event_id, value, date) VALUES ('Test', 1, 1, '0.1', '2017-07-29')""")
Not sure if I am making a really dumb mistake, but I can't figure out why nothing is inserted.