How to set up cascading deletes in MySQL workbench?

MadSeb picture MadSeb · Feb 10, 2012 · Viewed 19.1k times · Source

In MySQL Workbench, how do you set up a cascading delete on a relationship?

I clicked the relationship line and clicked on properties but I do not see any mention of a cascading delete option.

Answer

J Cooper picture J Cooper · Feb 10, 2012

Right Click On Table -> Alter Table -> Foreign Keys Tab

Look at the upper-right corner "Foreign Key Options", there are two drop down boxes, one is to specify the delete action: "On Delete"

enter image description here