ERROR 1005 (HY000) at line 147: Can't create table '.\hitandlove\members_services.frm' (errno: 121)

Hi,
I think I have a problem with my Primary Key:

ERROR 1005 (HY000) at line 147: Can't create table '.\hitandlove\members_services.frm' (errno: 121)


CREATE TABLE `members_services` (
  `member_id` int(10) unsigned NOT NULL default '0',
  `service_id` int(10) unsigned NOT NULL default '0',
  `quantity` int(5) unsigned NOT NULL default '0',
  `price` int(5) unsigned NOT NULL default '0',
  `paid_date` datetime NOT NULL default '0000-00-00 00:00:00',
  PRIMARY KEY  (`member_id`,`service_id`),
  KEY `FK_MEMBER_ID` (`member_id`),
  CONSTRAINT `FK_MEMBER_ID` FOREIGN KEY (`member_id`) REFERENCES `members` (`id_member`),
  KEY `FK_SERVICE_ID` (`service_id`),
  CONSTRAINT `FK_SERVICE_ID` FOREIGN KEY (`service_id`) REFERENCES `services` (`id_service`)
);


Thanks.
LVL 9
matthew016Asked:
Who is Participating?
 
Aleksandar BradarićConnect With a Mentor Software DeveloperCommented:
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.