<?xml version="1.0" encoding="UTF-8"?>

<rss version="2.0"
 xmlns:blogChannel="http://backend.userland.com/blogChannelModule"
>

<channel>
<title>Parallels knowledgebase (KB)</title>
<link>http://kb.parallels.com/</link>
<description>Parallels knowledgebase (KB)</description>
<language>en</language>
<copyright>Copyright 2008 Parallels</copyright>
<pubDate>Wed, 10 Sep 2008 00:00:00 +0600</pubDate>
<lastBuildDate>Wed, 10 Sep 2008 00:00:00 +0600</lastBuildDate>
<webMaster>rt-team@parallels.com</webMaster>

<item>
<title><![CDATA[Upgrade to Plesk 8.2 failed with the "Duplicate entry 'localhost-admin' for key 1" error.]]></title>
<link>http://kb.parallels.com/en/2013</link>
<description><![CDATA[<div id="article">
	




	<div id="kb" class="kb">
		<div class="article-container">
			<h2 class="title">Upgrade to Plesk 8.2 failed with the "Duplicate entry 'localhost-admin' for key 1" error.</h2>
			<div class="ab-frame"><div class="bl"><div class="br"><div class="tl"><div class="tr"><!-- frame -->
				<div class="articleProperty">
					<div>Article ID: 2013&nbsp;</div>
					<div>Last Review: Mar,19 2009</div>
					<tr>
						<td>Author: </td>
						<td>Vitaly Malakhov</td>
					</tr>
					<br/>
					<tr>
						<td>Last updated by: </td>
						<td>Vitaly Malakhov</td>
					</tr>
					<strong>APPLIES TO:</strong>
					<div class="articleApplies">
						<ul>
							<li>Plesk 8.2 for Linux/Unix</li>
						</ul>
					</div>
				</div><!-- articleProperty -->
			</div></div></div></div></div><!-- frame -->

			<div class="article-internal-flag"></div>

			<div id="article-content">
				<div class="article-part">
					<h2>Symptoms</h2>
					Upgrade to Plesk 8.2 fails with the following error:<br /><br /><span style='font-family: courier new,courier;font-size: 12px;'>===&gt; Installing psa database<br />mysqld (pid 2064) is running...<br />&nbsp;Trying to define valid mysql credentials...&nbsp; Trying to establish test<br />connection... connected<br />done<br />&nbsp;Trying to remove chunks from MySQL database... ERROR 1062 (23000) at line 3:<br />Duplicate entry 'localhost-admin' for key 1<br /><br />ERROR while trying to remove chunks from MySQL database</span><br /><br /><br />
				</div>
				<div class="article-part">
					<h2>Cause</h2>
					This problem occurs if the record&nbsp; for 'root' user exists in mysql.user table. Plesk tries to rename 'root' user to 'admin' and fails with the error.<br /><br /><br />
				</div>
				<div class="article-part">
					<h2>Resolution</h2>
					Rename 'root' mysql user to some other and rerun the upgrade with '--force' option:<br /><br /><div class="commandline"><code># mysql -uadmin -p`cat /etc/psa/.psa.shadow `&nbsp; mysql -e 'update user set user=&quot;root_user&quot; where user=&quot;root&quot;;flush privileges;'<br /># rpm -Uvh --force ./*</code></div><br /><br /><br />&nbsp;After upgrade is done, rename 'root' user back if you need it.<br /><br /><div class="commandline"><code># mysql -uadmin -p`cat /etc/psa/.psa.shadow `&nbsp; mysql -e 'update user set user=&quot;root&quot; where user=&quot;root_user&quot;;flush privileges;'</code></div>
				</div>
			</div>
		</div><!-- article-container -->


			<br/><br/>

			<div id="SubscriptionLink24Article" class="subscriptionLink2">
<a href="http://kb.parallels.com/subscriptions/index.html?Type=Article&ArticleID=2013&ArticleLanguage=en&Product=&Category="><img src="http://kb.parallels.com/images/mail.png" width="15" height="15" alt="Subscription for changes to this article"></a>
<a href="http://kb.parallels.com/subscriptions/index.html?Type=Article&ArticleID=2013&ArticleLanguage=en&Product=&Category=">Subscription for changes to this article</a>

<script type="text/javascript">

$(document).ready(function() {
	$('#SubscriptionLink24Article a').each(function(){
		$(this).click(function(event) {
			event.preventDefault();
			MainPageContentHide();
			$('#subscription').html('');
			$.get('/Stuff/Subscription', {
													'Type' : 'Article',
													'ArticleID' : '2013',
													'ArticleLanguage' : 'en',
													'Product' : '',
													'Category' : ''
												}, function(data) {
																	$('#subscription').html(data);
																	$('#subscription').show();
																	SUBbuildsubmenus_product();
																});
		});
	});
});

</script>

</div>





	</div><!-- kb -->

</div><!-- article -->


]]></description>
<author>Vitaly Malakhov</author>
<guid isPermaLink="false">1651 LastUpdated: 2009-03-19 08:33:29</guid>
<pubDate>2007-07-12 02:27:37</pubDate>
</item>
</channel>
</rss>



