<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>iTechLog &#187; 1062 &#8211; Duplicate entry &#8217;2147483647&#8242; for key 1</title>
	<atom:link href="http://itechlog.com/tag/1062-duplicate-entry-2147483647-for-key-1/feed/" rel="self" type="application/rss+xml" />
	<link>http://itechlog.com</link>
	<description>Your source to IT solutions, interesting technology news and code snipets.</description>
	<lastBuildDate>Mon, 06 Sep 2010 12:05:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Error 1062 &#8211; Duplicate entry &#8217;2147483647&#8242; for key 1</title>
		<link>http://itechlog.com/easy-tips/2009/07/10/error-1062-duplicate-entry-2147483647-for-key-1/</link>
		<comments>http://itechlog.com/easy-tips/2009/07/10/error-1062-duplicate-entry-2147483647-for-key-1/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 12:19:14 +0000</pubDate>
		<dc:creator>Alex Costa</dc:creator>
				<category><![CDATA[Easy Tips]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Web Programming]]></category>
		<category><![CDATA[1062 - Duplicate entry '2147483647' for key 1]]></category>
		<category><![CDATA[CRE Loaded]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHPMySQL]]></category>

		<guid isPermaLink="false">http://itechlog.com/easy-tips/2009/07/10/error-1062-duplicate-entry-2147483647-for-key-1/</guid>
		<description><![CDATA[CRE Loaded was giving me the error&#160; 1062 &#8211; Duplicate entry &#8217;2147483647&#8242; for key 1 &#8211; when trying to add a new product. Cause: for some unexplained reason the auto_increment ID field on Table &#8220;products&#8221; has gone up to 2147483647 which is apparently the maximum number of rows permitted in an INT column. Fix: Go [...]]]></description>
			<content:encoded><![CDATA[<p><a target="_blank" href="http://www.creloaded.com/"><b>CRE Loaded</b></a> was giving me the error&nbsp; <b>1062 &#8211; Duplicate entry &#8217;2147483647&#8242; for key 1</b> &#8211; when trying to add a new product.</p>
<p><b>Cause</b>: for some unexplained reason the auto_increment ID field on Table &#8220;products&#8221; has gone up to 2147483647 which is apparently the maximum number of rows permitted in an INT column.</p>
<p>Fix:
<ol>
<li>Go to your <a target="_blank" href="http://www.phpmyadmin.net/home_page/index.php"><b>phpMyadmin</b></a> interface</li>
<li>Backup your database (make sure you know how to restore it if needed)</li>
<li>Browse the products table (select to sort the fields by Descending order)</li>
<li>The top item should now have the ID = 2147483647</li>
<li>Change the ID to a number up from the previous item (e.g.: Previous was ID = 301, than change the ID = 2147483647 to 302)</li>
<li>Repeat same process with table &#8220;product_to_categories&#8221;</li>
<li>Return to table &#8220;products&#8221;</li>
<li>Select the SQL tab</li>
<li>run the following SQL Query :&nbsp; <b>ALTER TABLE products AUTO_INCREMENT=</b>303&nbsp;&nbsp; (note that 303 is the next number up from the example on step 5, you should use the next number up in your situation)</li>
</ol>
<p>It worked perfectly for me, hope this helps.</p>
<p>
<ul class="socialwrap size32 row">
<li class="iconOnly"><a rel="nofollow" target="_blank" class="delicious" href="http://delicious.com/post?url=http%3A%2F%2Fitechlog.com%2Feasy-tips%2F2009%2F07%2F10%2Ferror-1062-duplicate-entry-2147483647-for-key-1%2F&amp;title=Error+1062+%26%238211%3B+Duplicate+entry+%26%238217%3B2147483647%26%238242%3B+for+key+1" title="Bookmark this post : Error 1062 &#8211; Duplicate entry &#8217;2147483647&#8242; for key 1 on Delicious"><span class="head">Bookmark on Delicious</span></a></li>
<li class="iconOnly"><a rel="nofollow" target="_blank" class="digg" href="http://digg.com/submit?url=http%3A%2F%2Fitechlog.com%2Feasy-tips%2F2009%2F07%2F10%2Ferror-1062-duplicate-entry-2147483647-for-key-1%2F&amp;title=Error+1062+%26%238211%3B+Duplicate+entry+%26%238217%3B2147483647%26%238242%3B+for+key+1&amp;bodytext=CRE+Loaded+was+giving+me+the+error%26nbsp%3B+1062+-+Duplicate+entry+%272147483647%27+for+key+1+-+when+trying+to+add+a+new+product.Cause%3A+for+some+unexplained+reason+the+auto_increment+ID+field+on+Table+%22products%22+has+gone+up+to+2147483647+which+is+apparently+the+maximum+number+of+rows+permitted+in+an+INT+column.Fix%3AGo+to+your+" title="Digg this post : Error 1062 &#8211; Duplicate entry &#8217;2147483647&#8242; for key 1"><span class="head">Digg this post</span></a></li>
<li class="iconOnly"><a rel="nofollow" target="_blank" class="facebook" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fitechlog.com%2Feasy-tips%2F2009%2F07%2F10%2Ferror-1062-duplicate-entry-2147483647-for-key-1%2F&amp;t=Error+1062+%26%238211%3B+Duplicate+entry+%26%238217%3B2147483647%26%238242%3B+for+key+1" title="Recommend this post : Error 1062 &#8211; Duplicate entry &#8217;2147483647&#8242; for key 1 on Facebook"><span class="head">Recommend on Facebook</span></a></li>
<li class="iconOnly"><a rel="nofollow" target="_blank" class="google_buzz" href="http://www.google.com/reader/link?url=http%3A%2F%2Fitechlog.com%2Feasy-tips%2F2009%2F07%2F10%2Ferror-1062-duplicate-entry-2147483647-for-key-1%2F&amp;title=Error+1062+%26%238211%3B+Duplicate+entry+%26%238217%3B2147483647%26%238242%3B+for+key+1" title="Buzz up this post : Error 1062 &#8211; Duplicate entry &#8217;2147483647&#8242; for key 1 "><span class="head">Buzz it up</span></a></li>
<li class="iconOnly"><a rel="nofollow" target="_blank" class="yahoo_buzz" href="http://buzz.yahoo.com/buzz?targetUrl=http%3A%2F%2Fitechlog.com%2Feasy-tips%2F2009%2F07%2F10%2Ferror-1062-duplicate-entry-2147483647-for-key-1%2F" title="Buzz up this post : Error 1062 &#8211; Duplicate entry &#8217;2147483647&#8242; for key 1 "><span class="head">Buzz it up</span></a></li>
<li class="iconOnly"><a rel="nofollow" target="_blank" class="orkut" href="http://promote.orkut.com/preview?nt=orkut.com&amp;du=http%3A%2F%2Fitechlog.com%2Feasy-tips%2F2009%2F07%2F10%2Ferror-1062-duplicate-entry-2147483647-for-key-1%2F&amp;tt=Error+1062+%26%238211%3B+Duplicate+entry+%26%238217%3B2147483647%26%238242%3B+for+key+1" title="Share this post : Error 1062 &#8211; Duplicate entry &#8217;2147483647&#8242; for key 1 on Orkut"><span class="head">Share on Orkut</span></a></li>
<li class="iconOnly"><a rel="nofollow" target="_blank" class="reddit" href="http://www.reddit.com/submit?url=http%3A%2F%2Fitechlog.com%2Feasy-tips%2F2009%2F07%2F10%2Ferror-1062-duplicate-entry-2147483647-for-key-1%2F&amp;title=Error+1062+%26%238211%3B+Duplicate+entry+%26%238217%3B2147483647%26%238242%3B+for+key+1" title="Share this post : Error 1062 &#8211; Duplicate entry &#8217;2147483647&#8242; for key 1 on Reddit"><span class="head">share via Reddit</span></a></li>
<li class="iconOnly"><a rel="nofollow" target="_blank" class="stumble" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fitechlog.com%2Feasy-tips%2F2009%2F07%2F10%2Ferror-1062-duplicate-entry-2147483647-for-key-1%2F&amp;title=Error+1062+%26%238211%3B+Duplicate+entry+%26%238217%3B2147483647%26%238242%3B+for+key+1" title="Share this post : Error 1062 &#8211; Duplicate entry &#8217;2147483647&#8242; for key 1 with Stumblers"><span class="head">Share with Stumblers</span></a></li>
<li class="iconOnly"><a rel="nofollow" target="_blank" class="twitter" href="http://twitter.com/home/?status=http%3A%2F%2Fitechlog.com%2Feasy-tips%2F2009%2F07%2F10%2Ferror-1062-duplicate-entry-2147483647-for-key-1%2F" title="Tweet this post : Error 1062 &#8211; Duplicate entry &#8217;2147483647&#8242; for key 1 on Twitter"><span class="head">Tweet about it</span></a></li>
<li class="iconOnly"><a rel="nofollow" target="" class="rss" href="http://itechlog.com/easy-tips/2009/07/10/error-1062-duplicate-entry-2147483647-for-key-1/feed" title="Follow this post : Error 1062 &#8211; Duplicate entry &#8217;2147483647&#8242; for key 1 comments"><span class="head">Subscribe to the comments on this post</span></a></li>
<li class="iconOnly"><a rel="" class="email" href="mailto:?subject=iTechLog : Error 1062 &#8211; Duplicate entry &#8217;2147483647&#8242; for key 1&#038;body=here is a link to a site I really like.   http://itechlog.com/easy-tips/2009/07/10/error-1062-duplicate-entry-2147483647-for-key-1/" title="Tell a friend about this post : Error 1062 &#8211; Duplicate entry &#8217;2147483647&#8242; for key 1 "><span class="head">Tell a friend</span></a></li>
</ul>
<div class="clean"></div>

<!-- start wp-tags-to-technorati 1.02 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/1062+-+Duplicate+entry+%272147483647%27+for+key+1' rel='tag' target='_self'>1062 - Duplicate entry '2147483647' for key 1</a>, <a class='technorati-link' href='http://technorati.com/tag/CRE+Loaded' rel='tag' target='_self'>CRE Loaded</a>, <a class='technorati-link' href='http://technorati.com/tag/Database' rel='tag' target='_self'>Database</a>, <a class='technorati-link' href='http://technorati.com/tag/MySQL' rel='tag' target='_self'>MySQL</a>, <a class='technorati-link' href='http://technorati.com/tag/PHPMySQL' rel='tag' target='_self'>PHPMySQL</a></p>

<!-- end wp-tags-to-technorati -->
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li>August 12, 2010 -- <a href="http://itechlog.com/linux/2010/08/12/linuxcon-2010-just-for-fun-poll-results-explained/" title="LinuxCon 2010 Just for Fun Poll Results explained">LinuxCon 2010 Just for Fun Poll Results explained</a></li><li>April 21, 2009 -- <a href="http://itechlog.com/open-source/2009/04/21/oracle-to-own-mysql/" title="Oracle to own MySQL">Oracle to own MySQL</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://itechlog.com/easy-tips/2009/07/10/error-1062-duplicate-entry-2147483647-for-key-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
