I am trying to insert a value into my local MySQL instance using Python but I keep getting an error
Here is my code:
con = mdb.connect('localhost', 'root', 'password', 'testDB')
cur = con.cursor()
cur.execute('''INSERT INTO testDB.testPython VALUES (%s)''',("HelloWorld"))
con.commit()
but I am getting the following error
TypeError: not all arguments converted during string formatting
Does anyone know why?