How to start AUTO_INCREMENT from 0 through php mysql checking?

check
I can"t even find the method on the website
how to start AUTO_INCREMENT from 0 via php mysql lookup?

not in this way:

CREATE TABLE `admin` (
  `x` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

is the way to pass through mysqli


ALTER TABLE admin
AUTO_INCREMENT = 0;


if starting from 0, the data table must have no content, then you can clear the table

Truncate table xxxx;

Menu