You need to use a transactional database engine. eg INNODB
You are currently using MyISAM which does not support transactions.
This means you cannot start or rollback transactions without changing your DB engine.
MySQL gives instructions on how to convert from MyISAM to INNODB