Skip to content

Tag: mysql

SSL connect to mysql from django

We just had a migration from a “unsecured” mysql DB to a SSL mysql but my Django application cannot connect anymore. content of settings.py and when I execute this Django command line : python3 manage.py dbshell (which used to work with the pre-migration DB), I receive the error message : As you c…

Not all parameters were used in the SQL statement Python – MySql

I want to check if the ID exists already but I get this error: Not all parameters were used in the SQL statement Code: Answer The second argument to execute() should be a sequence of values, one for each placeholder token %s in the query. You did pass a sequence, but not in the way you intended. Strings are s…