MySQL Forums
Forum List  »  Triggers

Re: Fixing: "Trigger in wrong schema. Error 1435"
Posted by: Dmitri Lenev
Date: March 24, 2006 09:33AM

Hi, Rick!

MySQL emits "Trigger in wrong schema" (error number 1435) error when one tries to create trigger in database which is different from database where its subject table resides.

In your particular case:

CREATE TRIGGER trg_DATATABLE
BEFORE INSERT ON test.DATATABLE
FOR EACH ROW ...

Means that you are trying to create trigger in _current_ database probably differs from 'test'.

So you should solve your problems by simply doing:

CREATE TRIGGER test.trg_DATATABLE
BEFORE INSERT ON test.DATATABLE
FOR EACH ROW ...

Best regards,
--
Dmitri Lenev, Software Developer
MySQL AB, www.mysql.com

Are you MySQL certified? http://www.mysql.com/certification

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Fixing: "Trigger in wrong schema. Error 1435"
5872
March 24, 2006 09:33AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.