I have the same problem as Justin, (Can't change MySQL AUTO_INCREMENT) ie trying to change the auto_increment value is ignored.
I have used the:
ALTER TABLE tableName AUTO_INCREMENT = 123;
before and it worked fine. I am also using InnoDB and have a primary key on the column that is set to Auto_increment.
CREATE TABLE `people` (
`PerRef` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
`Surname` varchar(40) NOT NULL,
PRIMARY KEY (`PerRef`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
I have added some dummy entries to a table during testing. I have deleted these entries and want to reset the auto_inc value to where it should be.
Surely you don't have to remove the key before being able to reset the Auto_inc value?
What are we missing here?