Subject: | MySQL DELIMITER should be removed by split() |
MySQL's DELIMITER is not a statement that is understood by the server:
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'DELIMITER $$'
See also https://stackoverflow.com/questions/12417076/perl-dbi-and-the-mysql-delimiter
Hence lines matching /^DELIMITER/ should be removed in split().