<?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>Linux Windows System Administrator Help &#187; mysql_connect</title>
	<atom:link href="http://linuxwindowsmaster.com/tag/mysql_connect/feed/" rel="self" type="application/rss+xml" />
	<link>http://linuxwindowsmaster.com</link>
	<description></description>
	<lastBuildDate>Mon, 30 Jan 2012 19:54:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>What is the advantge and disadvantage of mysql_connect() and mysql_pconnect() ?</title>
		<link>http://linuxwindowsmaster.com/what-is-the-advantge-and-disadvantage-of-mysql_connect-and-mysql_pconnect/</link>
		<comments>http://linuxwindowsmaster.com/what-is-the-advantge-and-disadvantage-of-mysql_connect-and-mysql_pconnect/#comments</comments>
		<pubDate>Thu, 16 Apr 2009 00:41:19 +0000</pubDate>
		<dc:creator>Alex P</dc:creator>
				<category><![CDATA[Dedicated Server]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[mysql_connect]]></category>
		<category><![CDATA[mysql_pconnect]]></category>

		<guid isPermaLink="false">http://linuxwindowsmaster.com/?p=279</guid>
		<description><![CDATA[mysql_pconnect() will maintain a persistent connection to the database. Whenever your script calls the connect to database function, it first searches already existing connections to the database and if exists it will use the same connection to connect to the database, if not it will open a new connection to the database. ie. Connection is [...]]]></description>
			<content:encoded><![CDATA[<p><!--[endif]--></p>
<p class="MsoNormal" style="text-align: justify;"><strong><span style="font-size: 11pt; font-family: Georgia;">mysql_pconnect() </span></strong><span style="font-size: 11pt; font-family: Georgia;">will maintain a persistent connection to the database. Whenever your script calls the connect to database function, it first searches already existing connections to the database and if exists it will use the same connection to connect to the database, if not it will open a new connection to the database. ie. Connection is Persistent</span></p>
<p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; font-family: Georgia;">where as <strong>mysql_connect()</strong> function will establish a new connection whenever a connection to database needed, and after executing the script, this function disconnects the connection. ie. connection is not a persistent one.</span></p>
<p class="MsoNormal" style="text-align: justify;"><strong><span style="font-size: 11pt; font-family: Georgia;">mysql_pconnect()</span></strong><span style="font-size: 11pt; font-family: Georgia;"> function is used where your site has a Heavy Traffic and where as <strong>mysql_connect()</strong> function is used when there is moderate/less traffic to your site.</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family: Georgia;"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family: Georgia;">Regard’s</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family: Georgia;">Alex P</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family: Georgia;">System Administrator.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://linuxwindowsmaster.com/what-is-the-advantge-and-disadvantage-of-mysql_connect-and-mysql_pconnect/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

