MySQL returns this error (most likely) because there is no unique index defined in the id column. (MySQL requires a unique index. Another possibility that you already understand is that there can only be one column defined as AUTO_INCREMENT in a table.)
To make this column AUTO_INCREMENT, you can add a UNIQUE constraint or a PRIMARY KEY constraint in the id column. For instance:
ALTER TABLE `blog` ADD CONSTRAINT `blog_ux` UNIQUE (`id`) ;
(Note that this statement returns an error if identical values ββexist for the id column.)
Alternatively, you can make the id column the main character of the table (if the table does not yet have a PRIMARY KEY constraint).
ALTER TABLE `blog` ADD PRIMARY KEY (`id`) ;
(Note that this statement returns an error if there is any duplicate value for the id column, or if there are NULL values ββin this column, if the table has a PRIMARY KEY constraint.)
source share