generate auto increment id as 1 in mysql code example Example: auto_increment mysql ALTER TABLE User AUTO_INCREMENT = 1;