Not all parameters were used in the SQL statement while trying to insert into mysql database using flask application [duplicate]

Solution 1:

You need to use %s for every argument per the documentation - they use %s for strings, integers, datetimes, etc.

https://dev.mysql.com/doc/connector-python/en/connector-python-api-mysqlcursor-execute.html