Maria Grazia Toffetti ha scritto:
> Starting with 1.2.0, MySQLdb disables autocommit by default, as
> required by the DB-API standard (PEP-249). If you are using InnoDB
> tables or some other type of transactional table type, you'll need to
> do connection.commit() before closing the connection,
guarda se รจ il tuo caso
http://mysql-python.sourceforge.net/FAQ.html#other-errors
Starting with 1.2.0, MySQLdb disables autocommit by default, as required by
the DB-API standard (PEP-249). If you are using InnoDB tables or some other
type of transactional table type, you'll need to do connection.
Chiedo scusa ma ho riportato il codice in modo errato.
Di seguito si trova quello corretto:
import MySQLdb
db = MySQLdb.connect(host = 'localhost', db = 'nome_db', user = 'user',
pas