MySQL Forums
Forum List  »  InnoDB

Can't create table (errno: 150) :: InnoDB
Posted by: Vikram Tambe
Date: May 13, 2008 09:38AM

i am getting error while creating table.
CREATE TABLE `music_media_rights` (
`mmr_id` DECIMAL(22, 0) NOT NULL,
`mmr_thing_id` DECIMAL(22, 0) NULL,
`mmr_music_id` DECIMAL(22, 0) NOT NULL,
`mmr_music_type_id` DECIMAL(22, 0) NOT NULL,
`mmr_media_id` DECIMAL(22, 0) NOT NULL,
`mmr_media_type_id` DECIMAL(22, 0) NOT NULL,
`mmr_work_stream_rights` DECIMAL(22, 0) NOT NULL DEFAULT 0,
`mmr_perf_stream_rights` DECIMAL(22, 0) NOT NULL DEFAULT 0,
`mmr_work_download_rights` DECIMAL(22, 0) NOT NULL DEFAULT 0,
`mmr_perf_download_rights` DECIMAL(22, 0) NOT NULL DEFAULT 0,
`mmr_work_podcast_rights` DECIMAL(22, 0) NOT NULL DEFAULT 0,
`mmr_perf_podcast_rights` DECIMAL(22, 0) NOT NULL DEFAULT 0,
`mmr_rel_type_id` DECIMAL(22, 0) NULL,
`mmr_notes` VARCHAR(4000) BINARY NULL,
PRIMARY KEY (`mmr_id`),
INDEX `idx_mmr_media_type_id` (`mmr_media_type_id`),
INDEX `idx_mmr_perf_download_rights` (`mmr_perf_download_rights`),
INDEX `idx_mmr_perf_podcast_rights` (`mmr_perf_podcast_rights`),
INDEX `idx_mmr_perf_stream_rights` (`mmr_perf_stream_rights`),
INDEX `idx_mmr_perf_download_rights` (`mmr_perf_download_rights`),
INDEX `idx_mmr_rel_type_id` (`mmr_rel_type_id`),
INDEX `idx_mmr_work_download_rights` (`mmr_work_download_rights`),
INDEX `idx_mmr_work_podcast_rights` (`mmr_work_podcast_rights`),
INDEX `idx_mmr_work_stream_rights` (`mmr_work_stream_rights`),
CONSTRAINT `fk_mmr_media_obj_id` FOREIGN KEY `fk_mmr_media_obj_id` (`mmr_media_type_id`)
REFERENCES `type_object` (`objtype_id`)
ON DELETE SET NULL
ON UPDATE NO ACTION,
CONSTRAINT `fk_mmr_music_obj_id` FOREIGN KEY `fk_mmr_music_obj_id` (`mmr_music_type_id`)
REFERENCES `type_object` (`objtype_id`)
ON DELETE SET NULL
ON UPDATE NO ACTION,
CONSTRAINT `fk_mmr_perf_download_rights` FOREIGN KEY `fk_mmr_perf_download_rights` (`mmr_perf_download_rights`)
REFERENCES `type_music_rights` (`music_rights_id`)
ON DELETE SET NULL
ON UPDATE NO ACTION,
CONSTRAINT `fk_mmr_perf_podcast_rights` FOREIGN KEY `fk_mmr_perf_podcast_rights` (`mmr_perf_podcast_rights`)
REFERENCES `type_music_rights` (`music_rights_id`)
ON DELETE SET NULL
ON UPDATE NO ACTION,
CONSTRAINT `fk_mmr_perf_stream_rights` FOREIGN KEY `fk_mmr_perf_stream_rights` (`mmr_perf_stream_rights`)
REFERENCES `type_music_rights` (`music_rights_id`)
ON DELETE SET NULL
ON UPDATE NO ACTION,
CONSTRAINT `fk_mmr_rel_type_id` FOREIGN KEY `fk_mmr_rel_type_id` (`mmr_rel_type_id`)
REFERENCES `type_music_media_relationship` (`music_media_rel_type_id`)
ON DELETE SET NULL
ON UPDATE NO ACTION,
CONSTRAINT `fk_mmr_work_download_rights` FOREIGN KEY `fk_mmr_work_download_rights` (`mmr_work_download_rights`)
REFERENCES `type_music_rights` (`music_rights_id`)
ON DELETE SET NULL
ON UPDATE NO ACTION,
CONSTRAINT `fk_mmr_work_podcast_rights` FOREIGN KEY `fk_mmr_work_podcast_rights` (`mmr_work_podcast_rights`)
REFERENCES `type_music_rights` (`music_rights_id`)
ON DELETE SET NULL
ON UPDATE NO ACTION,
CONSTRAINT `fk_mmr_work_stream_rights` FOREIGN KEY `fk_mmr_work_stream_rights` (`mmr_work_stream_rights`)
REFERENCES `type_music_rights` (`music_rights_id`)
ON DELETE SET NULL
ON UPDATE NO ACTION
)
ENGINE = INNODB

i am not able to figure where exectly i am doing wrong?
please help me !!!!!!!!

Options: ReplyQuote


Subject
Views
Written By
Posted
650567
March 24, 2005 01:20PM
5691
October 09, 2012 09:48PM
3890
December 19, 2011 10:13PM
9398
May 09, 2006 06:01PM
8539
November 15, 2006 02:05PM
Can't create table (errno: 150) :: InnoDB
12497
May 13, 2008 09:38AM
7613
T D
February 01, 2008 06:47AM
9447
August 27, 2008 08:08AM
9886
December 03, 2008 10:15AM
6367
May 01, 2009 07:39AM
3634
August 29, 2011 04:46PM
5253
s l
December 15, 2009 01:48PM
5171
December 22, 2009 02:54AM
3387
February 18, 2011 08:55AM
4071
May 24, 2011 10:11AM


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.