MySQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsDatabasesMySQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old December 4th, 2012, 01:49 AM
jitin27 jitin27 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2012
Posts: 1 jitin27 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 m 16 sec
Reputation Power: 0
Mysql Cluster 7.3 - Foriegn Key Issues -please HELP

Dear All ,

I have just installed mysql cluster 7.3 , for support of Foriegn Key for tables , but i am getting issues enabling forign key constraints for some of my tables , which have specific "ON UPDATE CASCADE " and "ON DELETE CASCADE" clause .

Below are two table definitions..


Table 1
CREATE TABLE IF NOT EXISTS `xyz_activity_reminder` (
`activity_id` int(11) NOT NULL,
`reminder_time` int(11) NOT NULL,
`reminder_sent` int(2) NOT NULL,
`recurringid` int(19) NOT NULL,
PRIMARY KEY (`activity_id`,`recurringid`)
) ENGINE=ndbcluster DEFAULT CHARSET=utf8;

Table 2
CREATE TABLE IF NOT EXISTS `xyz_activity_reminder_popup` (
`reminderid` int(19) NOT NULL AUTO_INCREMENT,
`semodule` varchar(100) NOT NULL,
`recordid` int(19) NOT NULL,
`date_start` date NOT NULL,
`time_start` varchar(100) NOT NULL,
`status` int(2) NOT NULL,
PRIMARY KEY (`reminderid`),
KEY `recordid` (`recordid`)
) ENGINE=ndbcluster DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

Error reported on :

ALTER TABLE `xyz_activity_reminder_popup`
ADD CONSTRAINT `xyz_activity_reminder_popup_ibfk_1` FOREIGN KEY (`recordid`) REFERENCES `xyz_activity_reminder` (`activity_id`) ON DELETE CASCADE;

==>ERROR 150 (HY000) : Cannot add foreign key constraint .

Please help , i have read the following forums , but didnt get any success.

thanks in anticipation ..please help .

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMySQL Development > Mysql Cluster 7.3 - Foriegn Key Issues -please HELP


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.

© 2003-2014 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap