Using MySql 5.5.20 on OSX 10.8.3
I'm restoring a mysql dump from another server using the same major version (5.5) There are a bunch of table CREATE and INSERT statements, then towards the end there are some Triggers defined.
When executing the line:
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/
/*!50003 `TRIGGER delete_po_items AFTER DELETE ON CRM_PURCHASEORDER
FOR EACH ROW BEGIN DELETE FROM CRM_PO_ITEM
where CRM_PO_ITEM.PURCHASEORDER_ID = OLD.PURCHASEORDER_ID; END */
I get the error:
Error Code: 1146. Table 'crm.CRM_PURCHASEORDER' doesn't exist`
But the table CRM_PURCHASEORDER does exist.. It even has around 2000 rows of data.
Due to IP issues I cannot post the original dump, and I haven't had any luck reproducing a minimal test case.
Any hint what could cause this? I saw some other similar postings on SO, but haven't had luck finding a solution that works for me.