,
ALTER TABLE tbl_name AUTO_INCREMENT = 5678;
And can update the counter variable auto_increment using the command
SET @@auto_increment_increment=15;
Loo at here for more info
mysql> SET @@auto_increment_increment=15;
Query OK, 0 rows affected (0.00 sec)
mysql> INSERT INTO autoinc1 VALUES (NULL), (NULL), (NULL), (NULL);
Query OK, 4 rows affected (0.00 sec)
Records: 4 Duplicates: 0 Warnings: 0
mysql> SELECT col FROM autoinc1;
+-----+
| col |
+-----+
| 1 |
| 16 |
| 31 |
| 46 |
source
share