I'm using MySQL 5.0. I try to drop and recreate the trigger. When I drop the trigger it says:
mysql> drop trigger ads_delete;
ERROR 1360 (HY000): Trigger does not exist
Then I try to create the trigger with the same name. It says:
ERROR 1359 (HY000): Trigger already exists
Here is my trigger:
delimiter //
create TRIGGER ads_delete
BEFORE INSERT ON ads
FOR EACH ROW
BEGIN
update params set ads_count=ads_count-1, freq_weight=freq_weight-NEW.freq;
END//
You need to drop the trigger like this:
Your trigger is in the db5 schema.
EDIT:
As OP commented that the problem is
ie, he is trying to create two triggers with the same instruction. (Probably a copy paste issue)