<?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>Pario TechnoBlob &#187; socket</title>
	<atom:link href="http://pario.no/tag/socket/feed/" rel="self" type="application/rss+xml" />
	<link>http://pario.no</link>
	<description>A cronological documentation test project, nothing serious, really!</description>
	<lastBuildDate>Thu, 26 Apr 2012 08:18:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>mysql on a nondefault socket</title>
		<link>http://pario.no/2008/10/08/mysql-on-anondefault-socket/</link>
		<comments>http://pario.no/2008/10/08/mysql-on-anondefault-socket/#comments</comments>
		<pubDate>Wed, 08 Oct 2008 16:16:19 +0000</pubDate>
		<dc:creator>Hans-Henry Jakobsen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[socket]]></category>

		<guid isPermaLink="false">http://pario.no/?p=511</guid>
		<description><![CDATA[It is sometimes necessary to run two instances of mysql, like in my case. I need a mysql database in addition to the one Zimbra uses. One solution to this problem is to run the mysql database on a non default socket. This can be done by changing the following line in my.cnf my.cnf [client] [...]]]></description>
			<content:encoded><![CDATA[<p>It is sometimes necessary to run two instances of mysql, like in my case. I need a mysql database in addition to the one Zimbra uses. One solution to this problem is to run the mysql database on a non default socket. This can be done by changing the following line in <strong>my.cnf</strong></p>
<p><strong>my.cnf</strong></p>
<pre>
[client]
...
socket = /var/run/mysqld/mysqld2.sock</pre>
<p>Restart the mysql daemon afterwards to activate the change.</p>
<p>In PHP it&#8217;s possible to avoid programming the nondefault socket info whenever we use mysql<br />
<strong>php.ini</strong></p>
<pre>
[MySQL]
...
mysql.default_socket = /var/run/mysqld/mysqld2.sock</pre>
<p>If you don&#8217;t have access to php.ini you have to program this in your PHP code</p>
<pre>
$dbcnx = @mysql_connect('localhost:/var/run/mysqld/mysqld2.sock',$username, $password);</pre>
<script type="text/javascript">var wordpress_toolbar_urls = [];var wordpress_toolbar_url = "http://pario.no/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "n";var wordpress_toolbar_hash = "aHR0cDovL3BhcmlvLm5vLzIwMDgvMTAvMDgvbXlzcWwtb24tYW5vbmRlZmF1bHQtc29ja2V0Lzx3cHRiPm15c3FsIG9uIGEgbm9uZGVmYXVsdCBzb2NrZXQ8d3B0Yj5odHRwOi8vcGFyaW8ubm88d3B0Yj5QYXJpbyBUZWNobm9CbG9i";</script>]]></content:encoded>
			<wfw:commentRss>http://pario.no/2008/10/08/mysql-on-anondefault-socket/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

