The error occurs on the creation of the stored procedures and views.
Here is a sample of the view creation query.
-- ----------------------------
-- View structure for bunches
-- ----------------------------
CREATE ALGORITHM=UNDEFINED DEFINER=`xyzuser`@`localhost` SQL SECURITY DEFINER VIEW `bunches` AS select `bunch`.`BunchID` AS `id` from `bunch`;