mysqlbinog (mariadb-binlog) output on MariaDB 10.4+ changes BEGIN to START TRANSACTION. This is not a problem with MySQL 5.8 or MySQL 5.8.