<?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>david rasch - making stuff work &#187; MySQL</title>
	<atom:link href="http://www.davidrasch.com/tag/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.davidrasch.com</link>
	<description></description>
	<lastBuildDate>Mon, 04 Apr 2011 00:53:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>MySQL and closed-source</title>
		<link>http://www.davidrasch.com/2008/05/07/mysql-and-closed-source/</link>
		<comments>http://www.davidrasch.com/2008/05/07/mysql-and-closed-source/#comments</comments>
		<pubDate>Wed, 07 May 2008 12:22:20 +0000</pubDate>
		<dc:creator>drasch</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[woot]]></category>

		<guid isPermaLink="false">http://www.davidrasch.com/2008/05/07/mysql-and-closed-source/</guid>
		<description><![CDATA[<p>Apparently someone at Sun agreed with my sentiments about moving to a more closed-source model for MySQL. </p> <p>While my original comments are self serving, apparently Sun believes that it will make better business sense in the long term to keep these components open-source. Hopefully this is a vote of confidence for the quality <span style="color:#777"> . . . &#8594; Read More: <a href="http://www.davidrasch.com/2008/05/07/mysql-and-closed-source/">MySQL and closed-source</a></span>]]></description>
			<content:encoded><![CDATA[<p>Apparently someone at Sun <a href="http://blogs.mysql.com/kaj/2008/05/06/mysql-server-is-open-source-even-backup-extensions/">agreed </a>with my <a href="http://www.davidrasch.com/2008/04/16/not-too-happy-to-hear-about-this/">sentiments</a> about moving to a more closed-source model for MySQL.  </p>
<p>While my original comments are self serving, apparently Sun believes that it will make better business sense in the long term to keep these components open-source.  Hopefully this is a vote of confidence for the quality of product the open-source model has helped MySQL create.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidrasch.com/2008/05/07/mysql-and-closed-source/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Not too happy to hear about this</title>
		<link>http://www.davidrasch.com/2008/04/16/not-too-happy-to-hear-about-this/</link>
		<comments>http://www.davidrasch.com/2008/04/16/not-too-happy-to-hear-about-this/#comments</comments>
		<pubDate>Thu, 17 Apr 2008 01:49:49 +0000</pubDate>
		<dc:creator>drasch</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[closedsource]]></category>
		<category><![CDATA[community]]></category>
		<category><![CDATA[enterprise]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[opensource]]></category>

		<guid isPermaLink="false">http://www.davidrasch.com/2008/04/16/not-too-happy-to-hear-about-this/</guid>
		<description><![CDATA[<p>Sun to begin developing features only for Enterprise server. While I&#8217;m glad Sun will continue development of MySQL, there are many things other than not having access to these advanced features. Mainly the splintering of development, the idea of paying for less-tested software, and whether it&#8217;s a trend. </p> ]]></description>
			<content:encoded><![CDATA[<p><a href="http://jcole.us/blog/archives/2008/04/14/just-announced-mysql-to-launch-new-features-only-in-mysql-enterprise/">Sun to begin developing features only for Enterprise server</a>. While I&#8217;m glad Sun will continue development of MySQL, there are many things other than not having access to these advanced features.  Mainly the splintering of development, the idea of paying for less-tested software, and whether it&#8217;s a trend.  </p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidrasch.com/2008/04/16/not-too-happy-to-hear-about-this/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>TriPUG and MySQL Talk on Memcache and PHP</title>
		<link>http://www.davidrasch.com/2007/05/03/tripug-and-mysql-post-on-memcache-and-php/</link>
		<comments>http://www.davidrasch.com/2007/05/03/tripug-and-mysql-post-on-memcache-and-php/#comments</comments>
		<pubDate>Fri, 04 May 2007 01:03:45 +0000</pubDate>
		<dc:creator>drasch</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Systems]]></category>
		<category><![CDATA[Talks]]></category>
		<category><![CDATA[memcache]]></category>

		<guid isPermaLink="false">http://www.davidrasch.com/2007/05/03/tripug-and-mysql-post-on-memcache-and-php/</guid>
		<description><![CDATA[<p>Memcache is an extension written by Danga for simple Key/Value pair caching for use with your favorite programming language. In this talk I demonstrate how to install, integrate, and leverage Memcache in PHP (using MySQL for a database). I build a sample application, demonstrate less than desirable performance and finally, return performance with a <span style="color:#777"> . . . &#8594; Read More: <a href="http://www.davidrasch.com/2007/05/03/tripug-and-mysql-post-on-memcache-and-php/">TriPUG and MySQL Talk on Memcache and PHP</a></span>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.danga.com/memcached/">Memcache</a> is an extension written by Danga for simple Key/Value pair caching for use with your favorite programming language.  In this <a href="http://www.davidrasch.com/talks/2007-05-memcache/">talk</a> I demonstrate how to install, integrate, and leverage Memcache in PHP (using MySQL for a database).  I build a sample application, demonstrate less than desirable performance and finally, return performance with a 100x improvement.</p>
<p>The whole talk and its supporting files can also be <a href="http://www.davidrasch.com/talks/2007-05-memcache/2007-05-memcache.zip">downloaded</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidrasch.com/2007/05/03/tripug-and-mysql-post-on-memcache-and-php/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Zend Framework and PDO_MYSQL</title>
		<link>http://www.davidrasch.com/2007/02/06/zend-framework-and-pdo_mysql/</link>
		<comments>http://www.davidrasch.com/2007/02/06/zend-framework-and-pdo_mysql/#comments</comments>
		<pubDate>Wed, 07 Feb 2007 03:35:58 +0000</pubDate>
		<dc:creator>drasch</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[zend]]></category>

		<guid isPermaLink="false">http://www.davidrasch.com/2007/02/06/zend-framework-and-pdo_mysql/</guid>
		<description><![CDATA[<p>I&#8217;ve been working with the Zend Framework a bit and in working with MySQL through PDO_MYSQL. I&#8217;ve run into a few problems trying to use parameters of queries.</p> <p>I&#8217;ve narrowed the issue down to PDO itself and not the Zend Framework.</p> <p> $dbh = new PDO("mysql:host=localhost;dbname=db","user","pw"); $query = "insert into silo_test_data (record_id, fieldname, value) <span style="color:#777"> . . . &#8594; Read More: <a href="http://www.davidrasch.com/2007/02/06/zend-framework-and-pdo_mysql/">Zend Framework and PDO_MYSQL</a></span>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been working with the Zend Framework a bit and in working with MySQL through PDO_MYSQL.  I&#8217;ve run into a few problems trying to use parameters of queries.</p>
<p>I&#8217;ve narrowed the issue down to PDO itself and not the Zend Framework.</p>
<p><code><br />
$dbh = new PDO("mysql:host=localhost;dbname=db","user","pw");<br />
$query = "insert into silo_test_data (record_id, fieldname, value)<br />
               values (3,'stufftest', :value )";<br />
$handle = $dbh->prepare($query);<br />
$handle->execute(array(":value" => 'crap'));<br />
$dbh = null;<br />
</code></p>
<p>The value gets inserted into the database as an empty string, or sometimes some low-value bytes.  I&#8217;ve managed to work around this temporarily thanks to some help from <a href="http://netevil.org/node.php?nid=795&#038;SC=1">this post</a>.  By setting PDO to emulate prepared statements, everything seems to work okay.</p>
<p><code><br />
$dbh->setAttribute(PDO::ATTR_EMULATE_PREPARES, true);<br />
</code></p>
<p>The problem is, the Zend framework encapsulates the actual db connection and connects lazily.  So, for now I&#8217;m running a query and then set the parameter on the encapsulated connection object.</p>
<p><code><br />
$db_connect = array( 'host' => $config->db->hostname,<br />
    'username' => $config->db->username,<br />
    'password' => $config->db->password,<br />
    'dbname' => $config->db->database );<br />
$db = Zend_Db::factory('PDO_MYSQL', $db_connect);<br />
$db->query('select 1');//HACK HACK HACK HACK to initiate connection.  Can't I make this a plugin?  or extend the class?<br />
$db->getConnection()->setAttribute(PDO::ATTR_EMULATE_PREPARES, true);<br />
Zend::register('db',$db);<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidrasch.com/2007/02/06/zend-framework-and-pdo_mysql/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

