11 messages in com.mysql.lists.clusterRe: Can't create table| From | Sent On | Attachments |
|---|---|---|
| Tatiana Peña | 21 Sep 2004 09:53 | |
| Mikael Ronström | 21 Sep 2004 13:46 | |
| Tatiana Peña | 22 Sep 2004 20:34 | |
| Tomas Ulin | 23 Sep 2004 02:44 | |
| Tatiana Peña | 23 Sep 2004 07:16 | |
| Tomas Ulin | 23 Sep 2004 11:52 | |
| Tatiana Peña | 25 Sep 2004 17:15 | |
| Magnus Svensson | 26 Sep 2004 01:15 | |
| Tatiana Peña | 27 Sep 2004 17:08 | |
| Tatiana Peña | 27 Sep 2004 17:12 | |
| Magnus Svensson | 28 Sep 2004 00:19 |
| Subject: | Re: Can't create table![]() |
|---|---|
| From: | Tatiana Peña (tayo...@hotpop.com) |
| Date: | 09/23/2004 07:16:44 AM |
| List: | com.mysql.lists.cluster |
Hi!! This is the bash script than I'm using to create 30 tables, one for each day from September.
The parameters it needs are the user and the password to the database
------ create_sept.sh-----
#!/bin/bash
# $1 is the user from the database # $2 is the password from the user
function create() {
mysql cdr -u$2 -p$3 -Ne " create table $1 ( recordType varchar(2), callTransactionType varchar(3), servedmsisdn varchar(15), servedIMEITAC varchar(6), servedIMEIFAC varchar(2), servedIMEISNR varchar(6), servedIMEISP varchar(2), servedMSRN varchar(15), startOfChargingdate date, timeStamp time, callDuration integer, otherpartylongnumberb varchar(20), dialledOtherPartyB varchar(20), thirdpartyb varchar(20), exchangeId varchar(15), tgrpNameIc varchar(10), cicIc varchar(6), tgrpNameOg varchar(10), cicOg varchar(6), sequenceNumber integer, CIDMCC varchar(3), CIDMNC varchar(3), CIDLAC varchar(3), cId varchar(5), inflag varchar(2), inservicekey varchar(2), intermediateSequenceNumber integer, drcCallId varchar(16), drcCallRN varchar(16) ) TYPE=NDB ; "
}
for i in `seq 1 30`; do if [ $i -lt 10 ]; then create tbl_2004090$i $1 $2 else create tbl_200409$i $1 $2 fi done
-----END create_sept.sh-----
-- Tatiana Peña <tayo...@hotpop.com>
El jue, 23-09-2004 a las 04:44, Tomas Ulin escribió:
Tatiana,
please send your script so we can test.
Thanks,
T
Tatiana Peña wrote:
Hi!
Mysql 4.1.5-gamma is installed with the same config.ini file I've sent. Error 4336 seems not to appear anymore :)
I also was trying to create 30 tables using a script but it creates some of them and for the others the system returns:
mysql> CREATE TABLE ctest13 (i INT) ENGINE=NDBCLUSTER; ERROR 1005 (HY000): Can't create table './cdr/ctest3.frm' (errno: 709)
If I delete one table it is possible to create another tables (more than one), but eventually the same error occurs :S
What could be the cause of the error?




