0

I am trying to create a disk table

CREATE TABLE table1_disk 
(col0 INT(11) NOT NULL AUTO_INCREMENT,
col1 VARCHAR(20) DEFAULT NULL,
PRIMARY KEY (col0)) 
ENGINE=ndbcluster DEFAULT CHARSET=latin1 
TABLESPACE ts_1 STORAGE DISK;

Error: Table storage engine 'NDBCLUSTER' found required create option missing.

I have specified ENGINE type. If I remove STORAGE type the table is created.

Raghu DV
  • 258
  • 5
  • 18

1 Answers1

0

Use this:

CREATE TABLE `table1_disk` (
  `col0` int(11) NOT NULL,
  `col1` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

ALTER TABLE `table1_disk`
  ADD PRIMARY KEY (`col0`);

ALTER TABLE `table1_disk`
MODIFY `col0` int(11) NOT NULL AUTO_INCREMENT;COMMIT;
adiga
  • 34,372
  • 9
  • 61
  • 83
salomon
  • 1
  • 1