<?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>Be the signal &#187; Drizzle</title>
	<atom:link href="http://bethesignal.org/blog/tag/drizzle/feed/" rel="self" type="application/rss+xml" />
	<link>http://bethesignal.org</link>
	<description>where we&#039;re going, we don&#039;t need roads...</description>
	<lastBuildDate>Thu, 26 Jan 2012 05:52:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<atom:link rel='hub' href='http://bethesignal.org/?pushpress=hub'/>
		<item>
		<title>WordPress and Drizzle</title>
		<link>http://bethesignal.org/blog/2009/07/08/wordpress-and-drizzle/</link>
		<comments>http://bethesignal.org/blog/2009/07/08/wordpress-and-drizzle/#comments</comments>
		<pubDate>Tue, 07 Jul 2009 19:15:39 +0000</pubDate>
		<dc:creator>Jeff Waugh</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Drizzle]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://bethesignal.org/?p=1538</guid>
		<description><![CDATA[So, for amusement, education and a desire to put Drizzle through its paces with a real-world application, I built a Drizzle database adapter for WordPress. Rather than completely dumping the native wpdb class (as most WordPress database adapters appear to &#8230; <a href="http://bethesignal.org/blog/2009/07/08/wordpress-and-drizzle/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>So, for amusement, education and a desire to put Drizzle through its paces with a real-world application, I built a <a href="http://wordpress.org/extend/plugins/drizzle/">Drizzle database adapter</a> for <a href="http://wordpress.org/">WordPress</a>.</p>
<p>Rather than completely dumping the native <tt>wpdb</tt> class (as most WordPress database adapters appear to do), I have subclassed it, replacing only the methods which use <tt>mysql_</tt> functions.</p>
<p>This way, it&#8217;s easier to maintain, and more likely to work with plugins and future versions of WordPress. I have also written a cheesy, retroactive test suite for <tt>wpdb</tt>&#8230; I haven&#8217;t done a lot of <a href="http://en.wikipedia.org/wiki/Test_driven_development">TDD</a>, so I have no idea if it&#8217;s any good, but it was helpful during development. <img width='16' height='16' src='http://bethesignal.org/wp-content/plugins/tango-smilies/tango/face-wink.png' alt=';-)' class='wp-smiley' /> </p>
<p>Because <a href="http://drizzle.org/">Drizzle</a> has removed column types and various bits of syntax that WordPress (and heaps of  plugins) rely on, the adapter does a tiny bit of query munging along the way. For now, the only filters required are for CREATE, ALTER and friends.</p>
<p>Here&#8217;s a screenshot of WordPress running on Drizzle. Note that in the sidebar, I&#8217;m showing off two plugins which maintain their own tables &#8212; <a href="http://wordpress.org/extend/plugins/wp-postratings/">WP-PostRatings</a> and <a href="http://wordpress.org/extend/plugins/twitter-tools/">Twitter Tools</a>.</p>
<p style="text-align: center;"><a href="/wp-content/uploads/2009/07/wpnd-aktt-postratings-20090618.idx.png"><img style=' display: block; margin-right: auto; margin-left: auto;'  class="aligncenter" title="WordPress on Drizzle" src="/wp-content/uploads/2009/07/wpnd-aktt-postratings-20090618.idx-320x525.png" alt="WordPress on Drizzle" width="320" height="525" /></a></p>
<p>To test this bad boy out &#8212; because it&#8217;s absolutely <em>not</em> for production blogs! &#8212; you&#8217;ll need the <a href="http://drizzle.org/">Drizzle server</a> (and its dependencies, naturally), the <a href="http://pecl.php.net/package/drizzle">Drizzle PHP extension</a>, <a href="http://wordpress.org/">WordPress 2.8</a> and my <a href="http://wordpress.org/extend/plugins/drizzle/">adapter</a>. Note that I have yet to test it with WordPress MU, but it shouldn&#8217;t require many changes if it doesn&#8217;t work already.</p>
<p>If you use Ubuntu and want an easier time of it, you can get almost everything from the following PPAs. The Drizzle server isn&#8217;t packaged, but it&#8217;s incredibly easy to build and changes so quickly that you&#8217;ll probably find you want to keep it up to date from the source anyway.</p>
<pre>deb http://ppa.launchpad.net/drizzle-developers/ppa/ubuntu hardy main
deb http://ppa.launchpad.net/jdub/devel/ubuntu hardy main</pre>
<p>(I have only built my packages for Ubuntu 8.04, hardy, but you can always just grab the source packages and build them for whatever you&#8217;re using.)</p>
<p>Make sure you install the database adapter <em>before</em> you go through the WordPress install process. In every other respect, your test blog should operate in a completely unsurprising manner. Except when Drizzle crashes&#8230; but that&#8217;s precisely why you&#8217;re testing it, right? <img width='16' height='16' src='http://bethesignal.org/wp-content/plugins/tango-smilies/tango/face-wink.png' alt=';-)' class='wp-smiley' /> </p>
<h2>On Drizzle</h2>
<p>I am incredibly impressed with the Drizzle project. It&#8217;s a living case study of Open Source innovation and project renewal.</p>
<p>In response to what could be regarded as the unadventurous maturity of the MySQL project, the Drizzle developers have not simply chosen a new goal and forked the code &#8212; they have crafted a mission based on an insightful reading of current and future needs, questioned everything about MySQL without throwing away what they had learned, and thoroughly redefined their expectations and model for community collaboration.</p>
<p>It&#8217;s the perfect application of Software Freedom&#8217;s most functional of permissions: the freedom to fork. Like other forks built on both technical <em>and</em> social foundations &#8212; such as Firefox and, coincidentally, WordPress &#8212; I think it will eclipse its predecessor. Yes, even the mighty MySQL. <img width='16' height='16' src='http://bethesignal.org/wp-content/plugins/tango-smilies/tango/face-smile.png' alt=':-)' class='wp-smiley' /> </p>
<p>I hope that what the Drizzle developers have done will teach and inspire other projects to look beyond their own horizon.</p>
<p>Here&#8217;s a rocktastic presentation by Brian Aker, &#8220;Drizzle: Rethinking MySQL for the Web&#8221;, from the recent <a href="http://opensourcebridge.org/">Open Source Bridge</a> conference:</p>
<script type='text/javascript' src='http://blip.tv/syndication/write_player?skin=js&posts_id=2312282&cross_post_destination=-1&view=full_js'></script>
]]></content:encoded>
			<wfw:commentRss>http://bethesignal.org/blog/2009/07/08/wordpress-and-drizzle/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
	</channel>
</rss>

