<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: How Do I Connect To Mysql With Php Remotely?</title>
	<atom:link href="http://pakistanwebsitedesigner.com/lahore/how-do-i-connect-to-mysql-with-php-remotely/feed" rel="self" type="application/rss+xml" />
	<link>http://pakistanwebsitedesigner.com/lahore/how-do-i-connect-to-mysql-with-php-remotely</link>
	<description></description>
	<lastBuildDate>Tue, 13 Jul 2010 21:46:21 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: arbpen</title>
		<link>http://pakistanwebsitedesigner.com/lahore/how-do-i-connect-to-mysql-with-php-remotely/comment-page-1#comment-4831</link>
		<dc:creator>arbpen</dc:creator>
		<pubDate>Sat, 19 Dec 2009 20:40:26 +0000</pubDate>
		<guid isPermaLink="false">http://pakistanwebsitedesigner.com/lahore/how-do-i-connect-to-mysql-with-php-remotely#comment-4831</guid>
		<description>You will have to use the FQDN, eg: 
$db = mysql_connect(&quot;example.com&quot;,&quot;usename&quot;,&quot;p…
$dbname = &quot;db name&quot;;
Some hosts do not allow you to connect from a remote site, the site has to be on the same server of hosting company.  Check CPanel and see if it&#039;s even available.</description>
		<content:encoded><![CDATA[<p>You will have to use the FQDN, eg:<br />
$db = mysql_connect(&#8221;example.com&#8221;,&#8221;usename&#8221;,&#8221;p…<br />
$dbname = &#8220;db name&#8221;;<br />
Some hosts do not allow you to connect from a remote site, the site has to be on the same server of hosting company.  Check CPanel and see if it&#8217;s even available.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joseph K</title>
		<link>http://pakistanwebsitedesigner.com/lahore/how-do-i-connect-to-mysql-with-php-remotely/comment-page-1#comment-4830</link>
		<dc:creator>Joseph K</dc:creator>
		<pubDate>Sat, 19 Dec 2009 18:42:46 +0000</pubDate>
		<guid isPermaLink="false">http://pakistanwebsitedesigner.com/lahore/how-do-i-connect-to-mysql-with-php-remotely#comment-4830</guid>
		<description>If the domains aren&#039;t on the same server, which seems to be the case if localhost doesn&#039;t work, you&#039;ll need to use the database server&#039;s IP address.  If you don&#039;t know your IP off-hand, you can get it by typing &quot;ping your-domain.com&quot; at a command prompt and you&#039;ll see the IP address for your domain.
The remote MySQL server would also need to be configured to allow a remote connection, most shared hosts aren&#039;t setup for this so you may run into issues.</description>
		<content:encoded><![CDATA[<p>If the domains aren&#8217;t on the same server, which seems to be the case if localhost doesn&#8217;t work, you&#8217;ll need to use the database server&#8217;s IP address.  If you don&#8217;t know your IP off-hand, you can get it by typing &#8220;ping your-domain.com&#8221; at a command prompt and you&#8217;ll see the IP address for your domain.<br />
The remote MySQL server would also need to be configured to allow a remote connection, most shared hosts aren&#8217;t setup for this so you may run into issues.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bernz</title>
		<link>http://pakistanwebsitedesigner.com/lahore/how-do-i-connect-to-mysql-with-php-remotely/comment-page-1#comment-4829</link>
		<dc:creator>Bernz</dc:creator>
		<pubDate>Sat, 19 Dec 2009 16:23:52 +0000</pubDate>
		<guid isPermaLink="false">http://pakistanwebsitedesigner.com/lahore/how-do-i-connect-to-mysql-with-php-remotely#comment-4829</guid>
		<description>Two things:
- Find the Full Domain name of the first domain. It might be something complex, so you might have to send a support email to the hosting company;
- Make sure you allow remote connections from your second machine: many hosts block all connections to MySQL except from Localhost. If you have access to CPanel, there is an option to add additional hosts that can connect to your MySQL server (add you second host).
Good luck!</description>
		<content:encoded><![CDATA[<p>Two things:<br />
- Find the Full Domain name of the first domain. It might be something complex, so you might have to send a support email to the hosting company;<br />
- Make sure you allow remote connections from your second machine: many hosts block all connections to MySQL except from Localhost. If you have access to CPanel, there is an option to add additional hosts that can connect to your MySQL server (add you second host).<br />
Good luck!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
