I am using mysql.connector
library to connect to the MySQL database. Whenever I loop through my dictionary and add data to the database, I get the following error after a few successful insertions of records into the database.
Is it the right way to way to loop and add data to the database?