Resetting AUTO_INCREMENT primary key

ALTER TABLE tablename AUTO_INCREMENT = 1

Change 1 to your desired value. for that case prior to execution of this you can sort your table with the primary field and get the highest value.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)