Resetting AUTO_INCREMENT primary key

ALTER TABLE tablename AUTO_INCREMENT = 1

Change 1 to your desired value. for that case prior to execution of this you can sort your table with the primary field and get the highest value.