<?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>Divide and Conquer &#187; MySQL</title>
	<atom:link href="http://www.divideandconquer.se/tag/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.divideandconquer.se</link>
	<description>David's Software Development Blog</description>
	<lastBuildDate>Thu, 24 Jun 2010 13:47:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Online PHP MySQL CRUD Scaffold generator</title>
		<link>http://www.divideandconquer.se/2009/07/06/online-php-mysql-crud-scaffold-generator/</link>
		<comments>http://www.divideandconquer.se/2009/07/06/online-php-mysql-crud-scaffold-generator/#comments</comments>
		<pubDate>Mon, 06 Jul 2009 18:08:39 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Web developmnet]]></category>
		<category><![CDATA[CRUD]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[scaffold]]></category>

		<guid isPermaLink="false">http://www.divideandconquer.se/?p=506</guid>
		<description><![CDATA[I needed some simple PHP MySQL CRUD and found www.phpscaffold.com. Perfect!
]]></description>
			<content:encoded><![CDATA[<p>I needed some simple PHP MySQL CRUD and found <a href="http://www.phpscaffold.com/" onclick="pageTracker._trackPageview('/outgoing/www.phpscaffold.com/?referer=');">www.phpscaffold.com</a>. Perfect!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.divideandconquer.se/2009/07/06/online-php-mysql-crud-scaffold-generator/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>MySQL, the new Cinderella</title>
		<link>http://www.divideandconquer.se/2009/04/21/mysql-the-new-cinderella/</link>
		<comments>http://www.divideandconquer.se/2009/04/21/mysql-the-new-cinderella/#comments</comments>
		<pubDate>Tue, 21 Apr 2009 07:37:34 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Off-topic]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Sun]]></category>

		<guid isPermaLink="false">http://www.divideandconquer.se/2009/04/21/mysql-the-new-cinderella/</guid>
		<description><![CDATA[Oracle tried to buy MySQL. Sun bought MySQL. Oracle buys Sun. 
MySQL will become Cinderella with the ugly stepmother Oracle mistreating her.
]]></description>
			<content:encoded><![CDATA[<p>Oracle tried to buy MySQL. Sun bought MySQL. Oracle buys Sun. </p>
<p>MySQL will become Cinderella with the ugly stepmother Oracle mistreating her.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.divideandconquer.se/2009/04/21/mysql-the-new-cinderella/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The power of greylisting is aided by whitelisting</title>
		<link>http://www.divideandconquer.se/2008/08/23/the-power-of-greylisting-is-aided-by-whitelisting/</link>
		<comments>http://www.divideandconquer.se/2008/08/23/the-power-of-greylisting-is-aided-by-whitelisting/#comments</comments>
		<pubDate>Sat, 23 Aug 2008 09:26:28 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[facebook]]></category>
		<category><![CDATA[gld]]></category>
		<category><![CDATA[gmail]]></category>
		<category><![CDATA[google mail]]></category>
		<category><![CDATA[greylisting]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[whitelisting]]></category>

		<guid isPermaLink="false">http://www.divideandconquer.se/2008/08/23/the-power-of-greylisting-is-aided-by-whitelisting/</guid>
		<description><![CDATA[I&#8217;ve been running gld for more than two months now and it is truly efficient. The current statistics say:
# of entries in the database&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; : 16077
# of one hit entries in the database : 15100
Oldest entry in database&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; : 65 days ago

This means that almost 94% of the attempts to send mail through my server [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been running <a href="http://www.gasmi.net/gld.html" target="_self" onclick="pageTracker._trackPageview('/outgoing/www.gasmi.net/gld.html?referer=');">gld</a> for more than two months now and it is truly efficient. The current statistics say:</p>
<p style="margin-left: 40px;"><tt># of entries in the database&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : 16077<br />
# of one hit entries in the database : 15100<br />
Oldest entry in database&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : 65 days ago<br />
</tt></p>
<p>This means that almost 94% of the attempts to send mail through my server are only made once!</p>
<p>Unfortunately Facebook and Google Mail do not play well with greylisting, as attempts that are told <i>Service temporarily unavailable, please try later</i> by greylisting are very likely to be retried from a different IP. I&#8217;ve made <a target="_self" href="/wp-content/uploads/2008/08/autowhitelist.sh">a little script</a> that scans <tt>/var/log/mail.log</tt> for such mail servers and add them to the gld whitelist table.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.divideandconquer.se/2008/08/23/the-power-of-greylisting-is-aided-by-whitelisting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress crack attempt this morning!</title>
		<link>http://www.divideandconquer.se/2008/04/16/wordpress-crack-attempt-this-morning/</link>
		<comments>http://www.divideandconquer.se/2008/04/16/wordpress-crack-attempt-this-morning/#comments</comments>
		<pubDate>Wed, 16 Apr 2008 08:12:50 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Meta]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[WWW]]></category>

		<guid isPermaLink="false">http://www.divideandconquer.se/2008/04/16/wordpress-crack-attempt-this-morning/</guid>
		<description><![CDATA[When I got to work and viewed this blog I noticed that Sidebar Widgets was disabled. I thought &#34;That&#8217;s weird!&#34;
When I tried to login to the administration interface I was told that my WordPress database needed upgrading. I thought &#34;That&#8217;s weird!&#34;
Some further investigation revealed that someone managed to upload a PHP script called ro8kfbsmag.txt (MD5 [...]]]></description>
			<content:encoded><![CDATA[<p>When I got to work and viewed this blog I noticed that <a href="http://svn.wp-plugins.org/widgets/trunk" title="Visit plugin homepage" onclick="pageTracker._trackPageview('/outgoing/svn.wp-plugins.org/widgets/trunk?referer=');">Sidebar Widgets</a> was disabled. I thought &quot;That&#8217;s weird!&quot;</p>
<p>When I tried to login to the administration interface I was told that my WordPress database needed upgrading. I thought &quot;That&#8217;s weird!&quot;</p>
<p>Some further investigation revealed that someone managed to upload a PHP script called ro8kfbsmag.txt (MD5 sum df3b74cd38c717d9d7bbf0cd1910baa1) to my /tmp directory. It starts like this:</p>
<p style="margin-left: 40px;"><code>&lt;?php<br />
/*Magic Include Shell by Mag icq 884888*/<br />
//TODO: &ntilde;&euml;&egrave;&ograve;&uuml; &ocirc;&agrave;&eacute;&euml;&icirc; &iacute;&agrave; &ntilde;&acirc;&icirc;&eacute; &ocirc;&ograve;&iuml; (!)<br />
$ver='2.1';<br />
if(isset($_GET[pisun233]))<br />
{</code></p>
<p>This gave me enough information too start googling. A must-read is <a href="http://blog.taragana.com/index.php/archive/detailed-post-mortem-of-a-website-hack-through-wordpress-how-to-protect-your-wordpress-blog-from-hacking/" rel="bookmark" title="Detailed Post-Mortem of a Website Hack Through WordPress &amp; How To Protect Your WordPress Blog From Hacking" onclick="pageTracker._trackPageview('/outgoing/blog.taragana.com/index.php/archive/detailed-post-mortem-of-a-website-hack-through-wordpress-how-to-protect-your-wordpress-blog-from-hacking/?referer=');"> Detailed Post-Mortem of a Website Hack Through WordPress &amp; How To Protect Your WordPress Blog From Hacking</a>, as it describes a very similar attack. There is also a support thread at wordpress.org: <a href="http://wordpress.org/support/topic/141041" target="_self" onclick="pageTracker._trackPageview('/outgoing/wordpress.org/support/topic/141041?referer=');">Weird and Dangerous : ro8kfbsmag.txt</a>.</p>
<p>The attack vector on my server looked like this, originating from 78.109.21.80 with HTTP/1.0 as protocol version and &quot;Opera&quot; as User-Agent. I wish I logged POST data!</p>
<p style="margin-left: 40px;">POST /wp-admin/options.php<br />
POST /wp-admin/upload.php<br />
POST /wp-admin/options.php<br />
POST /wp-admin/options.php<br />
POST /wp-admin/inline-uploading.php?post=-1&amp;action=upload<br />
POST /wp-admin/options.php<br />
POST /wp-admin/options.php<br />
POST /wp-admin/upload.php?style=inline&amp;tab=upload&amp;post_id=-1<br />
POST /wp-admin/upload.php?style=inline&amp;tab=upload&amp;post_id=-1<br />
POST /wp-admin/options.php<br />
POST /wp-admin/options.php<br />
GET /wp-admin/upgrade.php?step=1</p>
<p>Needless to say, I have restored a backup and taken certain precautions to prevent this from happening again.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.divideandconquer.se/2008/04/16/wordpress-crack-attempt-this-morning/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Sun buys MySQL AB!</title>
		<link>http://www.divideandconquer.se/2008/01/16/sun-buys-mysql-ab/</link>
		<comments>http://www.divideandconquer.se/2008/01/16/sun-buys-mysql-ab/#comments</comments>
		<pubDate>Wed, 16 Jan 2008 14:23:43 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://www.divideandconquer.se/2008/01/16/sun-buys-mysql-ab/</guid>
		<description><![CDATA[Read more at MySQL.com and Sun.com. Good it&#8217;s not Oracle.
Oracle, on the other hand, managed to buy BEA.
]]></description>
			<content:encoded><![CDATA[<p>Read more at <a href="http://mysql.com/news-and-events/sun-to-acquire-mysql.html" onclick="pageTracker._trackPageview('/outgoing/mysql.com/news-and-events/sun-to-acquire-mysql.html?referer=');">MySQL.com</a> and <a href="http://www.sun.com/aboutsun/media/presskits/2008-0116/index.jsp?intcmp=hp2008jan16_mysql_learn" onclick="pageTracker._trackPageview('/outgoing/www.sun.com/aboutsun/media/presskits/2008-0116/index.jsp?intcmp=hp2008jan16_mysql_learn&amp;referer=');">Sun.com</a>. Good it&#8217;s not Oracle.</p>
<p>Oracle, on the other hand, managed to buy BEA.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.divideandconquer.se/2008/01/16/sun-buys-mysql-ab/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL support for UTF-8 in Ruby on Rails</title>
		<link>http://www.divideandconquer.se/2007/12/11/mysql-support-for-utf-8-in-ruby-on-rails/</link>
		<comments>http://www.divideandconquer.se/2007/12/11/mysql-support-for-utf-8-in-ruby-on-rails/#comments</comments>
		<pubDate>Tue, 11 Dec 2007 09:39:19 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://www.divideandconquer.se/2007/12/11/mysql-support-for-utf-8-in-ruby-on-rails/</guid>
		<description><![CDATA[As a follow-up to my post about MySQL support for UTF-8 in PHP, here is the very same information for Ruby on Rails. In Rails it is a simple configuration entry in config/database.yml. I use the development configuration as an example:
development:
  adapter: mysql
  database: dev
  username: dev
  password: secret
  socket: [...]]]></description>
			<content:encoded><![CDATA[<p>As a follow-up to my post about <a href="/2007/12/10/mysql-support-for-utf-8-in-php/">MySQL support for UTF-8 in PHP</a>, here is the very same information for Ruby on Rails. In Rails it is a simple configuration entry in config/database.yml. I use the development configuration as an example:</p>
<pre>development:
  adapter: mysql
  database: dev
  username: dev
  password: secret
  socket: /var/run/mysqld/mysqld.sock
  encoding: UTF8</pre>
<p>UTF-8 is obviously configured with the <tt>encoding</tt> setting. Don&#8217;t forget to update the test and production databases too!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.divideandconquer.se/2007/12/11/mysql-support-for-utf-8-in-ruby-on-rails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL support for UTF-8 in PHP</title>
		<link>http://www.divideandconquer.se/2007/12/10/mysql-support-for-utf-8-in-php/</link>
		<comments>http://www.divideandconquer.se/2007/12/10/mysql-support-for-utf-8-in-php/#comments</comments>
		<pubDate>Mon, 10 Dec 2007 12:30:19 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.divideandconquer.se/2007/12/10/mysql-support-for-utf-8-in-php/</guid>
		<description><![CDATA[Originally published in Swedish in my Folkmun.se Blog, a handy tip to make sure that you are reading and writing UTF-8 when connecting to a MySQL database:
mysql_query("SET NAMES utf8");
mysql_query("SET CHARACTER SET utf8")
]]></description>
			<content:encoded><![CDATA[<p>Originally published in Swedish in my <a href="http://blogg.folkmun.se/2007/05/05/mysql-och-utf-8-i-php/" onclick="pageTracker._trackPageview('/outgoing/blogg.folkmun.se/2007/05/05/mysql-och-utf-8-i-php/?referer=');">Folkmun.se Blog</a>, a handy tip to make sure that you are reading and writing UTF-8 when connecting to a MySQL database:</p>
<pre>mysql_query("SET NAMES utf8");
mysql_query("SET CHARACTER SET utf8")</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.divideandconquer.se/2007/12/10/mysql-support-for-utf-8-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
