Re: Fixing: "Trigger in wrong schema. Error 1435"
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
Subject
Views
Written By
Posted
13379
March 13, 2006 07:18PM
Re: Fixing: "Trigger in wrong schema. Error 1435"
5872
March 24, 2006 09:33AM
3050
November 27, 2007 10:48AM
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.