{"id":3940,"date":"2013-08-04T00:12:11","date_gmt":"2013-08-04T00:12:11","guid":{"rendered":"https:\/\/theextremewebdesigns.com\/blog\/?p=3940"},"modified":"2013-08-04T00:12:11","modified_gmt":"2013-08-04T00:12:11","slug":"phpmyadmin-auto-increment-starting-value","status":"publish","type":"post","link":"https:\/\/theextremewebdesigns.com\/blog\/phpmyadmin-auto-increment-starting-value\/","title":{"rendered":"Easily Set Auto Increment In phpMyAdmin To Any Value Of Your Choice"},"content":{"rendered":"<p>So you wish to manually <em><strong>set auto increment in phpMyAdmin<\/strong><\/em>? If yes, this article will show you how to do it very easily. In fact, I am going to share two way of setting auto increment. One way would be to start the count from the number &#8220;1&#8221; and the other would be to start the count from any number you desire, such as &#8220;250&#8221; or &#8220;5001&#8221; or &#8220;3689&#8221;. Exciting? Read on to find out how to do this.<\/p>\n<p><!--more--><\/p>\n<h2>How To\u00a0Easily Set Auto Increment Value In phpMyAdmin<\/h2>\n<p>Lets take a look at both the cases.<\/p>\n<h3>1) Start auto increment from 1.<\/h3>\n<p>While adding a column, simply check the checkbox under &#8220;A_I&#8221; column. This\u00a0A_I column stands for auto-increment. Just make sure that for the &#8220;Type&#8221; column against this entry, select any type that represents a numerical value such as Tinyint, Smallint, Mediumint, Int, Bigint, Double. See the screenshot below to understand it more clearly:<\/p>\n<div id=\"attachment_3943\" style=\"width: 310px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/theextremewebdesigns.com\/blog\/wp-content\/uploads\/2013\/08\/set-auto-increment-to-1-phpmyadmin.png\" class=\"broken_link\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3943\" class=\"size-medium wp-image-3943\" alt=\"Set Auto Increment To 1 in phpMyAdmin\" src=\"https:\/\/theextremewebdesigns.com\/blog\/wp-content\/uploads\/2013\/08\/set-auto-increment-to-1-phpmyadmin-300x48.png\" width=\"300\" height=\"48\" \/><\/a><p id=\"caption-attachment-3943\" class=\"wp-caption-text\">Set Auto Increment To 1 in phpMyAdmin<\/p><\/div>\n<p>Once you create the table, just click on the &#8220;Structure&#8221; tab and check to see if &#8220;AUTO_INCREMENT&#8221; appears under the &#8220;Extra&#8221; column against this field. If yes, then congrats! You have successfully implemented case 1.<\/p>\n<h3>2)\u00a0Start auto increment at any value of your choice.<\/h3>\n<p>This is simple too. You will just need to do couple of extra steps in addition to case 1. Once you have your table ready, just click on &#8220;Operations&#8221; tab. Look for &#8220;Table Options&#8221; fieldset. \u00a0In this, you will see &#8220;AUTO_INCREMENT&#8221; with a textbox against it. Now this is where you need to enter the new value that you desire. So if you want the table&#8217;s count to start from 5000 instead of 1, just enter 5000 in this textbox and click on the &#8220;Go&#8221; button. Here is a screenshot of how it can look:<\/p>\n<div id=\"attachment_3942\" style=\"width: 310px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/theextremewebdesigns.com\/blog\/wp-content\/uploads\/2013\/08\/set-auto-increment-phpmyadmin.png\" class=\"broken_link\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3942\" class=\"size-medium wp-image-3942\" alt=\"Set Auto Increment in phpMyAdmin\" src=\"https:\/\/theextremewebdesigns.com\/blog\/wp-content\/uploads\/2013\/08\/set-auto-increment-phpmyadmin-300x213.png\" width=\"300\" height=\"213\" \/><\/a><p id=\"caption-attachment-3942\" class=\"wp-caption-text\">Set Auto Increment in phpMyAdmin<\/p><\/div>\n<p>&nbsp;<\/p>\n<p>You can enter any other positive number that you like instead of 5000. If you have done it correctly, you will see a success message saying:<\/p>\n<p><strong><em>&#8220;Your SQL query has been executed successfully&#8221;.<\/em><\/strong><\/p>\n<p><strong>IMPORTANT NOTE:<\/strong><\/p>\n<p>There is one important note to remember. If you ever truncate the table, then the count will be restored to 1 automatically, even if you have allotted it a custom number. In such a case, make sure to repeat the steps mentioned in Case 2 above, should you ever truncate the table.<\/p>\n<h5>Simple, isn&#8217;t it?<\/h5>\n<p>Do you know of any other ways to <em><strong>manually set auto increment value in phpMyAdmin<\/strong><\/em>? Feel free to suggest by commenting below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So you wish to manually set auto increment in phpMyAdmin? If yes, this article will show you how to do it very easily. In fact, I am going to share two way of setting auto increment. One way would be to start the count from the number &#8220;1&#8221; and the other would be to start [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3912,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[21,146],"tags":[164],"class_list":["post-3940","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-articles","category-software","tag-phpmyadmin"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/paBnQX-11y","jetpack_sharing_enabled":true,"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/theextremewebdesigns.com\/blog\/wp-json\/wp\/v2\/posts\/3940","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theextremewebdesigns.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/theextremewebdesigns.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/theextremewebdesigns.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/theextremewebdesigns.com\/blog\/wp-json\/wp\/v2\/comments?post=3940"}],"version-history":[{"count":0,"href":"https:\/\/theextremewebdesigns.com\/blog\/wp-json\/wp\/v2\/posts\/3940\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/theextremewebdesigns.com\/blog\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/theextremewebdesigns.com\/blog\/wp-json\/wp\/v2\/media?parent=3940"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/theextremewebdesigns.com\/blog\/wp-json\/wp\/v2\/categories?post=3940"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/theextremewebdesigns.com\/blog\/wp-json\/wp\/v2\/tags?post=3940"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}