how to set default value for auto_increment in mysql code example Example: mysql set id auto increment ALTER TABLE users AUTO_INCREMENT=1001;