Transaction does not work on mysql

START TRANSACTION;
INSERT INTO orders(customer_id, order_data, status)
VALUES (1, ‘2019-01-01’, 1);

INSERT INTO order_items
VALUES (LAST_INSERT_ID(), 1, 1, 1);

COMMIT;

There is not value inserted into the orders table and order_items table. What should I do to return the values for the tables?