Hi Friends,
I am working with MySQL, InnoDB as a database. I will want to disable FOREIGN KEY checks. For that, I appended "?sessionVariables = FOREIGN_KEY_CHECKS = 0" to My Application's JDBC URL. i.e.,
URL= jdbc:mysql://MyHost/MyDB?sessionVariables = FOREIGN_KEY_CHECKS = 0
It is working fine before deployment. But after deployment it is not working( Foreign key checks are not disabled).
If foreign keys are enabled, then the problem is: child is inserting data before the parent table. So please get rid out of this.
Thanks for your reply,
Sreenivasulu.A.