0

I set index for mysql table, when i take backup using query browser , mysqlworkbench dose not display index details. What is the problem or else any mine mistake.

See mine table. I have set index for "id" column but not display that details.

CREATE TABLE IF NOT EXISTS `testsakthi` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` int(11) NOT NULL,
  `status` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `id` (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1;

My Question is where is index details? EX:

CREATE TABLE child (
    id INT, parent_id INT,
    INDEX par_ind (parent_id),
    FOREIGN KEY (parent_id) REFERENCES parent(id) ON DELETE CASCADE
) ENGINE=INNODB;

I have found some url they told some idea. see title " NO_KEY_OPTIONS "

http://dev.mysql.com/doc/refman/5.1/en/server-sql-mode.html

4

1 回答 1

0

mysqldump如果可能,从命令行使用,索引也将被转储:

mysqldump -R --user=username --password=password dnname > outputfile.sql
于 2012-04-18T14:02:19.263 回答