1# To Set the value of auto increment in an already existing table use:
2ALTER TABLE tables_name AUTO_INCREMENT=500; # Or whatever number you desire
1ALTER TABLE `users` ADD `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY
2
3ALTER TABLE `users` ADD `id` INT NOT NULL AUTO_INCREMENT UNIQUE FIRST
4
1ALTER TABLE tbl_access ADD COLUMN `access_id` int(10) NOT NULL PRIMARY KEY AUTO_INCREMENT FIRST
2