You need to complete a transaction in multiple DML requests. In the first
mysql> START TRANSACTION; , in the following - the request itself, and in the last -
mysql> COMMIT . The engine is InnoDB, SET AUTOCOMMIT=0 , but for some reason all the same every request is committed immediately.