6 messages in com.mysql.lists.clusterRE: Error when batch creating new tab...| From | Sent On | Attachments |
|---|---|---|
| wb...@dynacraft.com | 10 Apr 2005 19:10 | |
| wb...@dynacraft.com | 11 Apr 2005 22:20 | |
| Mikael Ronström | 11 Apr 2005 23:24 | |
| wb...@dynacraft.com | 11 Apr 2005 23:30 | |
| Martin Skold | 12 Apr 2005 02:04 | |
| wb...@dynacraft.com | 12 Apr 2005 02:11 |
| Subject: | RE: Error when batch creating new tables for engine=ndbcluster![]() |
|---|---|
| From: | wb...@dynacraft.com (wb...@dynacraft.com) |
| Date: | 04/12/2005 02:11:04 AM |
| List: | com.mysql.lists.cluster |
Hi,
Im running 4.1.10. I will try to add this table manually.
Boon
Building Towards A Better Tomorrow Together
You Ask Me To Fight For You, I Give You Freedom & Protection And Then You Question The Manner In Which I Provide It, I'd Rather You Just Said -- "Thank You" --
_____
From: Mart...@mysql.com [mailto:Mart...@mysql.com] Sent: Tuesday, April 12, 2005 5:05 PM To: WB Ng Cc: mik...@mysql.com; clus...@lists.mysql.com Subject: Re: Error when batch creating new tables for engine=ndbcluster
I had no problem creating this table separately (on 5.0, but nothing has changed here compared to 4.0).
What release are you using, and have you verified by trying to define this table separately?
BR -- Martin
wb...@dynacraft.com wrote:
Hi,
This is my schema for the said table. I do have the primary key. Pls advice.
CREATE TABLE prate_section_user ( cat_n tinyint(2) unsigned NOT NULL auto_increment, category_c varchar(30) default '0', supp_code_c varchar(10) NOT NULL default '', supp_alt_name_c varchar(35) default NULL, sec1_user_c varchar(6) default '0', sec1_user_name_c varchar(50) default NULL, sec2_user_c varchar(6) default '0', sec2_user_name_c varchar(50) default NULL, sec3_user_c varchar(6) default '0', sec3_user_name_c varchar(50) default NULL, sec4_user_c varchar(6) default '0', sec4_user_name_c varchar(50) default NULL, end_user_mgr_c varchar(6) default NULL, end_user_mgr_name_c varchar(50) default NULL, signature_flag_c char(1) default NULL, rpt_type_e enum('A','B') NOT NULL default 'A', delete_c char(1) default NULL, PRIMARY KEY dept_name_c (cat_n) ) engine=ndbcluster COMMENT='eSupp Performance Rating - commodity configuration.';
Boon Building Towards A Better Tomorrow Together You Ask Me To Fight For You, I Give You Freedom & Protection And Then You Question The Manner In Which I Provide It, I'd Rather You Just Said -- "Thank You" --
-----Original Message----- From: mik...@mysql.com [mailto:mik...@mysql.com] Sent: Tuesday, April 12, 2005 2:25 PM To: WB Ng Cc: clus...@lists.mysql.com Subject: Re: Error when batch creating new tables for engine=ndbcluster
Error description of 4335 from a newer version:
ndberror.c: { 4335, AE, "Only one autoincrement column allowed per table. Having a table without primary key uses an autoincremented hidden key, i.e. a table without a primary key can not have an autoincremented column" },
Rgrds Mikael
2005-04-12 kl. 07.20 skrev wb...@dynacraft.com:
My config.ini look like this
[NDBD DEFAULT]
NoOfReplicas=2
MaxNoOfAttributes=10000
DataMemory=600M
IndexMemory=200M
MaxNoOfOrderedIndexes=20000
MaxNoOfUniqueHashIndexes=20000
MaxNoOfTables=5000
But when I load the sql file for recreating the new tables (about 200 tables) to engine=ndbcluster, I hit the following error where the sql file has created about 160 tables.
ERROR 1005 (HY000) at line 3365: Can't create table './e_app_db/prate_section_user.frm' (errno: 4335)
Boon
Building Towards A Better Tomorrow Together
You Ask Me To Fight For You, I Give You Freedom & Protection And Then You Question The Manner In Which I Provide It, I'd Rather You Just Said -- "Thank You" --
Mikael Ronström, Senior Software Architect MySQL AB, www.mysql.com
Jumpstart your cluster: http://www.mysql.com/consulting/packaged/cluster.html
-- Martin Sköld, Software Engineer MySQL AB, www.mysql.com Office: +46 (0)730 31 26 21




