<?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>Christian Siegert</title>
	<atom:link href="http://christian-siegert.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://christian-siegert.com</link>
	<description>Developer Blog</description>
	<lastBuildDate>Thu, 22 Dec 2011 06:33:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Installing MySQL on Mac OS X 10.7 (Lion)</title>
		<link>http://christian-siegert.com/installing-mysql-on-mac-os-x-10-7-lion/</link>
		<comments>http://christian-siegert.com/installing-mysql-on-mac-os-x-10-7-lion/#comments</comments>
		<pubDate>Thu, 22 Dec 2011 06:33:15 +0000</pubDate>
		<dc:creator>Christian Siegert</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://christian-siegert.com/?p=9</guid>
		<description><![CDATA[Installing MySQL Go to http://www.mysql.com/downloads/mysql/ Download &#8220;Mac OS X ver. 10.6 (x86, 64-bit), DMG Archive&#8220; Open the downloaded .dmg file. Open &#8220;mysql-5.5.19-osx10.6-x86_64.pkg&#8221; (or a similarly named file) and follow the instructions to install MySQL. Open &#8220;MySQL.prefPane&#8221; to add an MySQL entry to System Preferences. &#8230;<p class="read-more"><a href="http://christian-siegert.com/installing-mysql-on-mac-os-x-10-7-lion/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<h2>Installing MySQL</h2>
<ol>
<li>Go to <a title="MySQL.com" href="http://www.mysql.com/downloads/mysql/">http://www.mysql.com/downloads/mysql/</a></li>
<li>Download <em>&#8220;Mac OS X ver. 10.6 (x86, 64-bit), DMG Archive<em>&#8220;</em></em></li>
<li>Open the downloaded .dmg file.</li>
<li>Open <em>&#8220;mysql-5.5.19-osx10.6-x86_64.pkg&#8221;</em> (or a similarly named file) and follow the instructions to install MySQL.</li>
<li>Open <em>&#8220;MySQL.prefPane&#8221;</em> to add an MySQL entry to System Preferences.</li>
</ol>
<p>To start the MySQL server, open <em>System Preferences</em> and go to <em>MySQL</em>. There you can start and stop the MySQL server. You can also choose to automatically start the MySQL server on startup.</p>
<h2>PHP and Database Connection Problems</h2>
<p>If you use Mac OS X&#8217;s build-in Apache web server, enabled the PHP module and get database connection problems, you need to edit <em>/private/etc/php.ini</em>. If this file does not exist yet, create it by copying <em>/private/etc/php.ini.default.</em></p>
<p><em></em>Open php.ini and change the line</p>
<p><code>pdo_mysql.default_socket=/var/mysql/mysql.sock</code><br />
to<br />
<code>pdo_mysql.default_socket=/tmp/mysql.sock</code></p>
<p>and</p>
<p><code>mysql.default_socket = /var/mysql/mysql.sock</code><br />
to<br />
<code>mysql.default_socket = /tmp/mysql.sock</code></p>
<p>After saving php.ini, restart Apache with <em>sudo apachectl restart</em></p>
]]></content:encoded>
			<wfw:commentRss>http://christian-siegert.com/installing-mysql-on-mac-os-x-10-7-lion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

