<?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"
	>

<channel>
	<title>unitstep.net &#187; mysql</title>
	<atom:link href="http://unitstep.net/blog/category/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://unitstep.net</link>
	<description>the home of peter chng</description>
	<pubDate>Sun, 30 Nov 2008 23:12:11 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.5</generator>
	<language>en</language>
			<item>
		<title>ThreatFire hanging or slowing down MySQL?</title>
		<link>http://unitstep.net/blog/2008/04/12/threatfire-hanging-or-slowing-down-mysql/</link>
		<comments>http://unitstep.net/blog/2008/04/12/threatfire-hanging-or-slowing-down-mysql/#comments</comments>
		<pubDate>Sat, 12 Apr 2008 16:10:02 +0000</pubDate>
		<dc:creator>Peter Chng</dc:creator>
		
		<category><![CDATA[development]]></category>

		<category><![CDATA[fix]]></category>

		<category><![CDATA[mysql]]></category>

		<category><![CDATA[threatfire]]></category>

		<guid isPermaLink="false">http://unitstep.net/?p=316</guid>
		<description><![CDATA[
After seeing glowing recommendations for the heuristic-based ThreatFire anti-malware app from PC Tools, I decided to install it to complement my antivirus scanner and other anti-spyware tools such as Spybot-S&#038;D and Ad-Aware.
Initially, it worked fine.  While I don&#8217;t know how much protection it really added, it was intuitive, easy to configure and didn&#8217;t slow [...]]]></description>
			<content:encoded><![CDATA[<p class="image align-right"><img src="http://unitstep.net/wordpress/wp-content/uploads/2008/04/threatfire-xampp.jpg" alt="XAMPP and ThreatFire" title="threatfire-xampp" width="200" height="145" /></p>
<p>After seeing <a href="http://www.maximumpc.com/article/internet_security_2_0?page=0%2C3">glowing</a> <a href="http://lifehacker.com/344645/protect-your-pc-from-viruses-in-real+time-with-threatfire">recommendations</a> for the heuristic-based <a href="http://www.threatfire.com/">ThreatFire</a> anti-malware app from PC Tools, I decided to install it to complement my antivirus scanner and other anti-spyware tools such as <a href="http://www.safer-networking.org/en/index.html">Spybot-S&#038;D</a> and <a href="http://www.lavasoftusa.com/">Ad-Aware</a>.</p>
<p>Initially, it worked fine.  While I don&#8217;t know how much protection it really added, it was intuitive, easy to configure and didn&#8217;t slow down my system like many other real-time scanners might have.  However, I ran into some trouble with my web development environment, consisting of Apache, MySQL and <acronym class="uttInitialism" title="PHP: Hypertext Preprocessor">PHP</acronym> (in the form of <a href="http://www.apachefriends.org/en/xampp.html">XAMPP</a>) that I could only attribute to ThreatFire&#8217;s presence.</p>
<h3>The symptoms</h3>
<p>With ThreatFire installed and enabled, requesting any pages from Apache that would result in MySQL access took painfully long.  Accessing static pages or scripts that did not use the MySQL database did not hang. At first, I thought it was a problem with the application/scripts I was working on, but other popular third-party scripts, such as <a href="http://www.phpmyadmin.net/">phpMyAdmin</a>, were also slow or unresponsive.  The server appeared to &#8220;hang&#8221; for about 10-15 seconds before producing any response.  This was on a local server.</p>
<p>I tried several different courses of action, such as:</p>
<ul>
<li>Enabling logging of slow queries with the <code>--log-slow-queries</code> option.</li>
<li>Adding the MySQL binaries (<code>mysqld.exe</code> and <code>mysqld-nt.exe</code>) to the ThreatFire exclusion/ignore list</li>
<li>Reinstalling XAMPP</li>
</ul>
<p>None of these worked.  In particular, logging slow queries did not produce any logs, which seemed to indicate that MySQL was hanging even before the queries were executed.  Surprisingly, logging the execution time of <acronym class="uttInitialism" title="PHP: Hypertext Preprocessor">PHP</acronym> scripts did not seem to indicate any problems either.  The queries I was executing and that datasets I was working on were also small and unlikely to be a contributing factor - any query, no matter how simple, seemed to hang.  </p>
<p>When I suspended or removed ThreatFire, the problems immediately went away.  Strangely, as I noted above, adding the MySQL binaries to the exclusion list did not help.  What was more interesting is that ThreatFire did not popup any warnings.  Usually, when &#8220;suspicious behaviour&#8221; is detected, ThreatFire will prompt you for a decision.  I did not notice any of this.</p>
<h3>ThreatFire is not bad</h3>
<p>The purpose of this is not to bash ThreatFire; it&#8217;s clearly a good tool and has definitive advantages, but just may not be well-suited to development environments where multiple servers are running.  I also wanted to provide this information to anyone else who may have been struggling with a slow/unresponsive server because of the same situation as mine.</p>
<hr/>Copyright &copy; 2008 <strong><a href="http://unitstep.net">unitstep.net</a></strong>. This Feed is for personal non-commercial use only. If you are not reading this material in your news aggregator, the site you are looking at is guilty of copyright infringement. Please contact <strong><a href="mailto:webmaster@unitstep.net">webmaster@unitstep.net</a></strong> for more information.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">Plugin</a> by <a href="http://www.taragana.com/">Taragana</a></span>]]></content:encoded>
			<wfw:commentRss>http://unitstep.net/blog/2008/04/12/threatfire-hanging-or-slowing-down-mysql/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Sun acquires MySQL for $1 billion USD</title>
		<link>http://unitstep.net/blog/2008/01/16/sun-acquires-mysql-for-1-billion-usd/</link>
		<comments>http://unitstep.net/blog/2008/01/16/sun-acquires-mysql-for-1-billion-usd/#comments</comments>
		<pubDate>Thu, 17 Jan 2008 00:12:47 +0000</pubDate>
		<dc:creator>Peter Chng</dc:creator>
		
		<category><![CDATA[SQL]]></category>

		<category><![CDATA[database]]></category>

		<category><![CDATA[java]]></category>

		<category><![CDATA[mysql]]></category>

		<category><![CDATA[sun]]></category>

		<guid isPermaLink="false">http://unitstep.net/blog/2008/01/16/sun-acquires-mysql-for-1-billion-usd/</guid>
		<description><![CDATA[There was some unexpected news this morning when Sun announced plans to acquire MySQL. (Offhand remark: What is up with that handshake?!?)  Though rumours of a MySQL IPO had surfaced and re-surfaced throughout last year, this was quite a shock to me, and apparently many others.  The price - $1 billion USD - [...]]]></description>
			<content:encoded><![CDATA[<p>There was some unexpected news this morning when <a href="http://blogs.mysql.com/kaj/2008/01/16/sun-acquires-mysql/">Sun announced plans</a> to acquire MySQL. (Offhand remark: What is up with that handshake?!?)  Though rumours of a <a href="http://www.techcrunch.com/2007/10/26/mysql-ipo-chatter-picking-up-again/">MySQL IPO</a> had surfaced and re-surfaced throughout last year, this was quite a shock to me, and apparently many others.  The price - $1 billion USD - had no small part in this surprise.  Indeed, when you consider that their main software product is open source, some may question the valuation.</p>
<h3>Software is only a piece of the puzzle</h3>
<p>While MySQL is indeed open-source - licensed under the GPL - <a href="http://en.wikipedia.org/wiki/MySQL_AB">MySQL AB</a>, the company in control of the project, sells services and support relating to their flagship product.  Furthermore, the software is dual-licensed (as are many projects, such as the JavaScript library, <a href="http://jquery.com">jQuery</a>), allowing the company to sell the product to clients that may not want the provisions of the GPL to be imposed upon their usage of the software.</p>
<p>With the traditional model of software, customers and clients pay for the software or a license to use it.  In these newer models, almost all based around open-source, it is the value-added service and support that are at the heart of the business model.  Note that MySQL AB is not the only company to do this; <a href="http://en.wikipedia.org/wiki/Red_Hat">Red Hat</a> has been around for years and they are certainly profitable.  With the success of open-source software, I have to believe that this, at least in part, is the future of software development.</p>
<h3>A great learning tool</h3>
<p>Open-source software also highlights another point - the value it brings by easing learning.  I remember when I was back in high school and starting to get into <acronym class="uttInitialism" title="PHP: Hypertext Preprocessor">PHP</acronym> and other web technologies.  Naturally, with <acronym class="uttInitialism" title="PHP: Hypertext Preprocessor">PHP</acronym> came MySQL (back then at version 3.23), and it was the availability of this quality, open-source and easy-to-setup DBMS that prompted me to learn SQL.  In my first real software project, creating the Cool Case Gallery for <a href="http://www.virtual-hideout.net">Virtual-Hideout</a>, I used both of these languages, which have since become valuable assets for me.  Kudos to MySQL and the open-source community for providing such great tools.</p>
<hr/>Copyright &copy; 2008 <strong><a href="http://unitstep.net">unitstep.net</a></strong>. This Feed is for personal non-commercial use only. If you are not reading this material in your news aggregator, the site you are looking at is guilty of copyright infringement. Please contact <strong><a href="mailto:webmaster@unitstep.net">webmaster@unitstep.net</a></strong> for more information.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">Plugin</a> by <a href="http://www.taragana.com/">Taragana</a></span>]]></content:encoded>
			<wfw:commentRss>http://unitstep.net/blog/2008/01/16/sun-acquires-mysql-for-1-billion-usd/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
