Install MySQL stored procedure to database on plugin install in Craft 3
After further investigation Yii handles the DELIMITER ;; in the createCommand() method. I just had to remove the opening and closing DELIMITER syntax and execute the Craft::$app-&gt;getDb()-&gt;createCommand("CREATE PROCEDURE ( ... )")-&gt;execute() for it to install.