willdebeest Posted February 17, 2010 Share Posted February 17, 2010 I have added a few categories but later deleted those categories. When I now add a category I have Id Numbers:12310is there a way I can edit 10 to become category ID no. 4 as this effects some scripting to display my page, which simply adds 1 to the category number each time to display the page? Link to comment Share on other sites More sharing options...
willdebeest Posted February 17, 2010 Author Share Posted February 17, 2010 Solved. I just needed to change the autoincrement value in the database. Link to comment Share on other sites More sharing options...
Radu Posted February 17, 2010 Share Posted February 17, 2010 great! that was the only solution. can you please add before the post title the [sOLVED] word? Thank you! Link to comment Share on other sites More sharing options...
uddhava Posted February 18, 2010 Share Posted February 18, 2010 Hacking the database is of course an option, but a fairly complex and sometimes dangerous one.I would suggest to create a CSV file with your categories and ID in it. Then reimport this file with the import tool..All your previous cat can be deleted and the imported cats have the correct ID's again Link to comment Share on other sites More sharing options...
Roman_vinnitskij Posted March 1, 2011 Share Posted March 1, 2011 Solved. I just needed to change the autoincrement value in the database. I have same problem!!! Could you describe more in detail how to fix it.Where I can found "autoincrement value" in phpmyadmin ? Link to comment Share on other sites More sharing options...
Radu Posted March 6, 2011 Share Posted March 6, 2011 change autoincrement using this sql:ALTER TABLE my_table_name AUTO_INCREMENT = 1000; Link to comment Share on other sites More sharing options...
Recommended Posts