For those of you who prefer a quick and dirty approach, just list all the columns that together define a unique record and create a unique index with those columns, like so:
ALTER IGNORE TABLE TABLE_NAME
ADD UNIQUE (column1
,column2
,column3
)
You can drop the unique index afterwords.