1ALTER TABLE tableName MODIFY COLUMN id INT; /* First you should drop auto increment */
2ALTER TABLE tableName DROP PRIMARY KEY; /* Dop primary key */
3ALTER TABLE tableName ADD PRIMARY KEY (new_id); /* Set primary key to the new column */
4ALTER TABLE tableName MODIFY COLUMN new_id INT AUTO_INCREMENT; /* Set auto increment to the new primary key */