Reset the auto increment value for a MySQL table

The following example changes the auto increment value for the table named "applytable" to 100. This means that the next time you insert a record into this table the value of the auto incremental primary key will be 100.

If the highest value for the column is already greater than 100 then it will be set to the highest value plus 1.

ALTER TABLE mytable AUTO_INCREMENT = 100
 
The relevent info are highlighted with red circles in the screenshot below.

Most Popular

Connect to Amazon EC2 instance using Filezilla and SFTP

About PHP language & CodeIgniter

Customize wordpress register form wp_register()