"Issuing rollback() due to DESTROY without explicit disconnect() of DBD::mysql::db"
Unable to find any docume开发者_运维问答ntation related to the error, any suggestions?
Your db connection, usually the $dbh
in plain DBI code, needs to be disconnected before it goes out of scope. See DBI#disconnect and try putting "dbi disconnect" into google/etc to see related issues discussions.
It's important to do commit/rollback (i.e $dbh->commit;
)after the insert/update/delete sentences in your SQL code, because you pass {Autocommit=>0}
parameter in the database connection code. And, of course, you must do $dbh->disconnect
before you finish your program
精彩评论