0
First of all you should check if there is any problem in your insertion, using an exception block, when you try to insert something and some error occurs, even so the sequence changes, it is possible to modify the sequence of the auto_increment
of your table using the code:
ALTER TABLE nome_da_tabela AUTO_INCREMENT = 352019;
The problem is that if you do this there will come a time when it will reach the number: 400000, and if the field is a primary key you will have problems as you will be violating a single key.
What probably happened is some high number insertion, probably 400000, which automatically increased the increment. The autoincrement will always be higher, nor would it have made sense to want to go back to the previous number. What is the problem in leaving as it is? Autoincrement was not meant to be sequential, but unique.
– Bacco
Back to follow the same sequence.
– Pedro