I am trying to add a trigger to my mySQL DB, but whether I try it from phpMyAdmin or programatically from C# in my web site, I allways get the error:
All the users I have created have full priviliges, and I use the same user fro all other database access.
I have tried this with DELIMITER changes, with "DEFINER=" and without, I am seriously running out of ideas!
Whatever I try, it works locally either via SQLYog or programmatically, but it will not work here.
I have searched here, and via google, but no joy.
All I am trying to do is create a trigger to cascade my deletes! What am I doing wrong?
Code:
Access denied; you need the SUPER privilege for this operation
Code:
CREATE TRIGGER `DeleteUser`
AFTER DELETE ON `mylifeuser`
FOR EACH ROW
BEGIN
DELETE messages.* FROM messages WHERE messages.userId=old.userId;
DELETE accountactivity.* FROM accountactivity WHERE accountactivity.userId=old.userId;
END;
Whatever I try, it works locally either via SQLYog or programmatically, but it will not work here.
I have searched here, and via google, but no joy.
All I am trying to do is create a trigger to cascade my deletes! What am I doing wrong?