What if the mysqldb execution statement of python is invalid?

clipboard.png

clipboard.png

mysql

clipboard.png

clipboard.png

Feb.11,2022

try adding the statement cursor2.commit () to the end
if you can, you set autocommit=false


default autocommit=false, is not automatically submitted. You need to manually call the cursor2.commit () method


python/en/connector-python-api-mysqlcursor-fetchall.html" rel=" nofollow noreferrer "> https://dev.mysql.com/doc/con.

Menu