<?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[If I open some database through PHPMyAdmin in Plesk CP, the following error occurs: "Non-static method PMA_Config::isHttps() should not be called statically".]]></title>
<link>http://kb.parallels.com/en/1869</link>
<description><![CDATA[<div id="article">
	




	<div id="kb" class="kb">
		<div class="article-container">
			<h2 class="title">If I open some database through PHPMyAdmin in Plesk CP, the following error occurs: "Non-static method PMA_Config::isHttps() should not be called statically".</h2>
			<div class="ab-frame"><div class="bl"><div class="br"><div class="tl"><div class="tr"><!-- frame -->
				<div class="articleProperty">
					<div>Article ID: 1869&nbsp;</div>
					<div>Last Review: Oct,6 2008</div>
					<tr>
						<td>Author: </td>
						<td>Bezborodova Anastasiya</td>
					</tr>
					<br/>
					<tr>
						<td>Last updated by: </td>
						<td>system</td>
					</tr>
					<strong>APPLIES TO:</strong>
					<div class="articleApplies">
						<ul>
							<li>Parallels Plesk Panel 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>
					PHPMyAdmin returns the following error when you are trying to access a database:<br /><br /><em>Non-static method PMA_Config::isHttps() should not be called statically</em>
				</div>
				<div class="article-part">
					<h2>Cause</h2>
					PHPMyAdmin in Plesk accesses the database using this database users&#39; credentials. In case if the user or password do not match to the records in &#39;mysql&#39; db, the error specified above occurs.
				</div>
				<div class="article-part">
					<h2>Resolution</h2>
					In order to check the user/password, you can try to establish MySQL connection from the command line on the server, for example:<br /><br /><div class="commandline"><code>~# mysql -uDB_USER -pDB_PASSWORD -D DB_NAME<br /> ERROR 1045 (28000): Access denied for user &#39;USERNAME&#39;@&#39;localhost&#39; (using password: YES)</code></div> <br />Such error means that database user cannot access the database because of invalid password or insufficient permissions to connect this database. <br />You can reset the password and permissions for this user through Plesk interface by updating the Domains -&gt; DOMAIN -&gt; Databases -&gt; DB_NAME -&gt; DB_USER page.<br /><br />If the problem remained after password reset, verify that empty mysql user does not exist and delete it in case such user exists.<br /><br /><div class="commandline"><code>mysql&gt; select Host, User from mysql.user where User=&#39;&#39;;<br />+----------------------+------+<br />| Host&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | User |<br />+----------------------+------+<br />| yourdomain.com&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |<br />| localhost&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |<br />+----------------------+------+<br />2 rows in set (0.00 sec)<br /><br />mysql&gt; delete from mysql.user where User=&#39;&#39;;  		 <br />Query OK, 2 rows affected (0.00 sec) 	<br /> 		 			<br />mysql&gt; FLUSH PRIVILEGES; <br />Query OK, 0 rows affected (0.00 sec)<br /><br />mysql&gt;</code></div><br /><br />As explained in MySQL manual at <br /><a href="http://kb.parallels.comhttp://dev.mysql.com/doc/refman/5.1/en/access-denied.html">http://dev.mysql.com/doc/refman/5.1/en/access-denied.html</a> 	<br /><br /> <em>A very common error is to insert a new entry with Host=&#39;%&#39; and User=&#39;some_user&#39;, thinking that this allows you to specify localhost to connect from the same machine. The reason that this does not work is that the default privileges include an entry with Host=&#39;localhost&#39; and User=&#39;&#39;. Because that entry has a Host value &#39;localhost&#39; that is more specific than &#39;%&#39;, it is used in preference to the new entry when connecting from localhost! The correct procedure is to insert a second entry with Host=&#39;localhost&#39; and User=&#39;some_user&#39;, or to delete the entry with Host=&#39;localhost&#39; and User=&#39;&#39;. After deleting the entry, remember to issue a FLUSH PRIVILEGES statement to reload the grant tables.</em>
				</div>
				<div class="keywords"><strong>Keywords:</strong> PHPMyAdmin; access denied; </div>
			</div>
		</div><!-- article-container -->


			<br/><br/>

			<div id="SubscriptionLink24Article" class="subscriptionLink2">
<a href="http://kb.parallels.com/subscriptions/index.html?Type=Article&ArticleID=1869&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=1869&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' : '1869',
													'ArticleLanguage' : 'en',
													'Product' : '',
													'Category' : ''
												}, function(data) {
																	$('#subscription').html(data);
																	$('#subscription').show();
																	SUBbuildsubmenus_product();
																});
		});
	});
});

</script>

</div>





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

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


]]></description>
<author>Bezborodova Anastasiya</author>
<guid isPermaLink="false">1507 LastUpdated: 2008-10-06 09:12:01</guid>
<pubDate>2007-05-23 03:53:45</pubDate>
</item>
</channel>
</rss>



