How @mhasan answers
ALTER TABLE `tablename` AUTO_INCREMENT = 1
is a way to do it.
Another approach is to drop the identifier column and recreate it.
ALTER TABLE `tablename` DROP `id`; ALTER TABLE `tablename` AUTO_INCREMENT = 1; ALTER TABLE `tablename` ADD `id` int UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY FIRST;
But if your table has relationships with other tables, your will is not a good solution.
source share