If you use phpMyAdmin, you can click the name of your table, and then click the "structure" tab. under additional functions you can put autorun. If this does not work, make sure that the user you register in your table has permission to make such a change. A query to create an automatic field increment will be something like.
CREATE TABLE Employee (ID int NULL AUTO_INCREMENT, Name varchar (255));
In this case, the field identifier will be automatically loaded
source share