<?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[How do I enable remote access to MySQL database server?]]></title>
<link>http://kb.parallels.com/en/1134</link>
<description><![CDATA[<div id="article">
	




	<div id="kb" class="kb">
		<div class="article-container">
			<h2 class="title">How do I enable remote access to MySQL database server?</h2>
			<div class="ab-frame"><div class="bl"><div class="br"><div class="tl"><div class="tr"><!-- frame -->
				<div class="articleProperty">
					<div>Article ID: 1134&nbsp;</div>
					<div>Last Review: Oct,6 2008</div>
					<tr>
						<td>Author: </td>
						<td></td>
					</tr>
					<br/>
					<tr>
						<td>Last updated by: </td>
						<td>system</td>
					</tr>
				</div><!-- articleProperty -->
			</div></div></div></div></div><!-- frame -->

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

			<div id="article-content">
				<div class="article-part">
					<h2>Resolution</h2>
					Since Plesk 8 MySQL users and databases are created with permissions that allow access to the database from outside. In previous Plesk versions MySQL users and databases are created with permissions that allow to access the database from localhost only. However, sometimes you need to provide the remote access.<br /><br />Open  /etc/my.cnf and make sure that the following lines exists/commented in [mysqld] section:<br /><br /><div class="commandline"><code>[mysqld]<br />port = 3306<br />bind-address = 10.10.0.1<br /># skip-networking<br />....</code></div><br /><br />Where,<br /><br />    * bind-address : local IP address to bind to. If you wish mysql listen on all IPs, don&#39;t use this option.<br /><br />    * skip-networking : Don&#39;t listen for TCP/IP connections at all. All interaction with mysqld must be made via Unix sockets. This option is highly recommended for systems where only local requests are allowed. Since you need to allow remote connection this line should be removed from file or put it in comment state.<br /><br />Restart MySQL. Now you should grant access to remote IP address, login to Mysql:<br /><br /><div class="commandline"><code> # mysql -uadmin -p`cat /etc/psa/.psa.shadow`  mysql </code></div><br /><br />For example if you want to allow access to database called  &#39;foo&#39; for user &#39;bar&#39; and remote IP 192.168.0.1 then you need to type following commands at &quot;mysql&gt;&quot; prompt:<br /><br /><div class="commandline"><code>mysql&gt; GRANT ALL ON foo.* TO bar@&#39;192.168.0.1&#39; IDENTIFIED BY &#39;PASSWORD&#39;;<br />mysql&gt; REVOKE  GRANT OPTION ON foo.* FROM bar@&#39;192.168.0.1&#39;;</code></div><br />
				</div>
			</div>
		</div><!-- article-container -->


			<br/><br/>

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

</script>

</div>





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

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


]]></description>
<guid isPermaLink="false">779 LastUpdated: 2008-10-06 09:11:05</guid>
<pubDate>2008-10-06 09:11:05</pubDate>
</item>
</channel>
</rss>



