I'm getting a strange issue on my database.
All auto increment fields of my database (all tables) are getting increment by 10.
Previously it was working fine (increment by 1). And now its started to increment by 10.
Table 1
Another table
I'm getting a strange issue on my database.
All auto increment fields of my database (all tables) are getting increment by 10.
Previously it was working fine (increment by 1). And now its started to increment by 10.
Table 1
Another table
Set the auto_increment_increment
system variable to 1.
SET @@auto_increment_increment=1
SET GLOBAL auto_increment_increment=1;
It's Something like that :
SET @@auto_increment_increment=1;
or for specific table :
ALTER TABLE users AUTO_INCREMENT =1;
Or you can refer w3school
Yes you may set the auto_increment_increment variable to 1
SET @@auto_increment_increment=1
SET GLOBAL auto_increment_increment=1;
in mysql it will work definitely.