I have a web app that has been written with the assumption that autocommit is turned on on the database, so I don\'t want to make any changes there. However all the document
You do this in 3 different ways:
Before you do an INSERT, always issue a BEGIN; statement. This will turn off autocommits. You will need to do a COMMIT; once you want your data to be persisted in the database.
Use autocommit=0; every time you instantiate a database connection.
For a global setting, add a autocommit=0 variable in your my.cnf configuration file in MySQL.