MySQL Forums
Forum List  »  InnoDB

Re: ERROR 1005: Can't create table (errno: 150)
Posted by: Andrey Svitlow
Date: January 12, 2008 06:00AM

I have problem with load mysql dump of my site to another site.
Can anyone please suggest a solution?
Mysql 5.0.45-community-nt on Windows

Query:
CREATE TABLE `civicrm_acl` (
`id` int(10) unsigned NOT NULL auto_increment COMMENT 'Unique table ID',
`domain_id` int(10) unsigned NOT NULL COMMENT 'Which Domain owns this contact',
`name` varchar(64) collate utf8_unicode_ci default NULL COMMENT 'ACL Name.',
`deny` tinyint(4) NOT NULL default '0' COMMENT 'Is this ACL entry Allow (0) or Deny (1) ?',
`entity_table` varchar(64) collate utf8_unicode_ci NOT NULL COMMENT 'Table of the object possessing this ACL entry (Contact, Group, or ACL Group)',
`entity_id` int(10) unsigned default NULL COMMENT 'ID of the object possessing this ACL',
`operation` enum('All','View','Edit','Create','Delete','Grant','Revoke') collate utf8_unicode_ci NOT NULL COMMENT 'What operation does this ACL entry control?',
`object_table` varchar(64) collate utf8_unicode_ci default NULL COMMENT 'The table of the object controlled by this ACL entry',
`object_id` int(10) unsigned default NULL COMMENT 'The ID of the object controlled by this ACL entry',
`acl_table` varchar(64) collate utf8_unicode_ci default NULL COMMENT 'If this is a grant/revoke entry, what table are we granting?',
`acl_id` int(10) unsigned default NULL COMMENT 'ID of the ACL or ACL group being granted/revoked',
`is_active` tinyint(4) default NULL COMMENT 'Is this property active?',
PRIMARY KEY (`id`),
KEY `index_acl_id` (`acl_id`),
KEY `FK_civicrm_acl_domain_id` (`domain_id`),
CONSTRAINT `FK_civicrm_acl_domain_id` FOREIGN KEY (`domain_id`) REFERENCES `civicrm_domain` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci

Error occured at:2008-01-12 13:39:30
Line no.:32
Error Code: 1005 - Can't create table '.\site\civicrm_acl.frm' (errno: 150)


CREATE TABLE `civicrm_domain` (
`id` int(10) unsigned NOT NULL auto_increment COMMENT 'Domain ID',
`name` varchar(64) collate utf8_unicode_ci default NULL COMMENT 'Name of Domain / Organization',
`description` varchar(255) collate utf8_unicode_ci default NULL COMMENT 'Description of Domain.',
`email_name` varchar(255) collate utf8_unicode_ci default NULL COMMENT 'The default email name that is used in the from address for all outgoing emails',
`email_address` varchar(255) collate utf8_unicode_ci default NULL COMMENT 'The default email address that is used as the from address for all outgoing emails',
`email_domain` varchar(64) collate utf8_unicode_ci default NULL COMMENT 'The domain from which outgoing email for this domain will appear to originate',
`email_return_path` varchar(64) collate utf8_unicode_ci default NULL COMMENT 'The domain from which outgoing email for this domain will appear to originate',
`config_backend` text collate utf8_unicode_ci COMMENT 'Backend configuration.',
`config_frontend` text collate utf8_unicode_ci COMMENT 'Frontend configuration.',
PRIMARY KEY (`id`),
UNIQUE KEY `UI_name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;



Edited 2 time(s). Last edit at 01/12/2008 06:15AM by Andrey Svitlow.

Options: ReplyQuote


Subject
Views
Written By
Posted
652139
March 24, 2005 01:20PM
5880
October 09, 2012 09:48PM
4058
December 19, 2011 10:13PM
9591
May 09, 2006 06:01PM
8703
November 15, 2006 02:05PM
Re: ERROR 1005: Can't create table (errno: 150)
11696
January 12, 2008 06:00AM
7761
T D
February 01, 2008 06:47AM
9749
August 27, 2008 08:08AM
10072
December 03, 2008 10:15AM
6500
May 01, 2009 07:39AM
3796
August 29, 2011 04:46PM
5456
s l
December 15, 2009 01:48PM
5328
December 22, 2009 02:54AM
3566
February 18, 2011 08:55AM
4301
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.