As quoted in the comments by Ricardo, its structure is incorrect in the MySql
scenario.
Example structure:
DELIMITER $
CREATE TRIGGER Tgr_ItensVenda_Insert AFTER INSERT
ON ItensVenda
FOR EACH ROW
BEGIN
UPDATE Produtos SET Estoque = Estoque - NEW.Quantidade
WHERE Referencia = NEW.Produto;
END$
CREATE TRIGGER Tgr_ItensVenda_Delete AFTER DELETE
ON ItensVenda
FOR EACH ROW
BEGIN
UPDATE Produtos SET Estoque = Estoque + OLD.Quantidade
WHERE Referencia = OLD.Produto;
END$
DELIMITER ;
Example in your code:
CREATE TRIGGER comissao AFTER INSERT
ON tb_Pedido
FOR EACH ROW
BEGIN
...
So, you need to set the trigger trigger time:
BEFORE : before
AFTER : then
Options : INSERT, UPDATE, DELETE
Link: MySQL Basics: Triggers