<?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>Hypn.za.net &#187; MySQL</title>
	<atom:link href="http://www.hypn.za.net/blog/category/programming/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hypn.za.net/blog</link>
	<description>Games, programming, and general geekyness =)</description>
	<lastBuildDate>Fri, 27 Jan 2012 09:37:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>USB Webserver 8.0 is out!</title>
		<link>http://www.hypn.za.net/blog/2010/07/15/usb-webserver-8-0-is-out/</link>
		<comments>http://www.hypn.za.net/blog/2010/07/15/usb-webserver-8-0-is-out/#comments</comments>
		<pubDate>Thu, 15 Jul 2010 10:06:27 +0000</pubDate>
		<dc:creator>Hypn</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://www.hypn.za.net/blog/?p=356</guid>
		<description><![CDATA[I&#8217;ve just gotten word from the creators that USB Webserver 8 is out &#8211; long time readers might remember that I released an unofficial hacked up version a little while ago, you should definitely use this official version instead. This release contains: Php 5.2.13 Apache 2.2.15 PhpMyAdmin 3.3.1-rc1 MySQL 5.1.44]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.hypn.za.net/blog/wp-content/uploads/2010/07/USB-Webserver-8.png"><br />
</a>I&#8217;ve just gotten word from the creators that <a href="http://www.usbwebserver.net/" target="_blank">USB Webserver 8</a> is out &#8211; long time readers might remember that I released an unofficial hacked up version a little while ago, you should definitely use this official version instead.</p>
<p style="text-align: center;"><img title="USB Webserver 8" src="/images/usbwebserver8.png" alt="USB Webserver 8" /></a></p>
<p>This release contains:</p>
<ul>
<li>Php 5.2.13</li>
<li>Apache 2.2.15</li>
<li>PhpMyAdmin 3.3.1-rc1</li>
<li>MySQL 5.1.44</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.hypn.za.net/blog/2010/07/15/usb-webserver-8-0-is-out/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>USB Webserver 8.0 (unofficial)</title>
		<link>http://www.hypn.za.net/blog/2009/05/17/usb-webserver-80-unofficial/</link>
		<comments>http://www.hypn.za.net/blog/2009/05/17/usb-webserver-80-unofficial/#comments</comments>
		<pubDate>Sun, 17 May 2009 09:14:55 +0000</pubDate>
		<dc:creator>Hypn</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://www.hypn.za.net/blog/?p=228</guid>
		<description><![CDATA[UPDATE (15 July 2010): An &#8220;official&#8221; version of USB Webserver 8 has been released, please use this instead of my &#8220;unofficial&#8221; version. You can download it from http://www.usbwebserver.net/ This is an unofficial updated version of USB Webserver. The original USB Webserver was created by http://www.usbwebserver.nl &#8211; but their site is currently down, and they haven&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p><strong>UPDATE (15 July 2010):</strong> An &#8220;official&#8221; version of USB Webserver 8 has been released, please use this instead of my &#8220;unofficial&#8221; version. You can download it from <a href="http://www.usbwebserver.net/" target="_blank">http://www.usbwebserver.net/</a></p>
<p>This is an unofficial updated version of USB Webserver. The original USB Webserver was created by <a title="USB Webserver" href="http://www.usbwebserver.nl" target="_blank">http://www.usbwebserver.nl</a> &#8211; but their site is currently down, and they haven&#8217;t released an update for a while.</p>
<p>This version contains:</p>
<p>Apache: 2.2.11<br />
PHP: 5.2.10-dev (with GD and cURL)<br />
MySQL: 5.1.30-community (with InnoDB)</p>
<p>It defaults to &#8220;English&#8221; (the original was &#8220;Dutch&#8221;), and you may need to change the ports if you have been using USB Webserver previously.</p>
<p><strong>Download</strong>: &#8220;<a href="http://hypn.za.net/downloads/USB%20Webserver%208.0%20(unofficial).zip">USB Webserver 8.0 (unofficial).zip</a>&#8221; (17.6mb)</p>
<p>(and yes, I know the main USB Webserver screen still says &#8220;USB Webserver 7.0&#8243; &#8211; ignore that :P)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hypn.za.net/blog/2009/05/17/usb-webserver-80-unofficial/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL auto-timestamping triggers</title>
		<link>http://www.hypn.za.net/blog/2008/09/22/mysql-auto-timestamping-triggers/</link>
		<comments>http://www.hypn.za.net/blog/2008/09/22/mysql-auto-timestamping-triggers/#comments</comments>
		<pubDate>Mon, 22 Sep 2008 13:24:47 +0000</pubDate>
		<dc:creator>Hypn</dc:creator>
				<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.hypn.za.net/blog/?p=144</guid>
		<description><![CDATA[I used to be dead against things like triggers&#8230; mainly because I hated coding them (and SQL) back when I learnt Oracle PL/SQL at college, and I&#8217;ve always been a &#8220;bare-minimum, must-be-backward-compatible, code-it-yourself&#8221; programmer&#8230; but now I&#8217;ve decided it&#8217;s just much easier to use them, and it&#8217;s not my fault if people refuse to upgrade [...]]]></description>
			<content:encoded><![CDATA[<p>I used to be dead against things like triggers&#8230; mainly because I hated coding them (and SQL) back when I learnt Oracle PL/SQL at college, and I&#8217;ve always been a &#8220;bare-minimum, must-be-backward-compatible, code-it-yourself&#8221; programmer&#8230; but now I&#8217;ve decided it&#8217;s just much easier to use them, and it&#8217;s not my fault if people refuse to upgrade to MySQL 5.</p>
<p>So here&#8217;s my niffty trigger code for the day, which automatically updates the &#8220;last_updated&#8221; (timestamp) field in a table, when a record is inserted or updated:</p>
<blockquote><p><em>CREATE TRIGGER `database_name`.`last_updated_insert_trigger`<br />
BEFORE INSERT ON `database_name`.`table_name` FOR EACH ROW SET new.last_updated := UNIX_TIMESTAMP();</em></p>
<p><em>CREATE TRIGGER `database_name`.`last_updated_update_trigger`<br />
BEFORE UPDATE ON `database_name`.`table_name` FOR EACH ROW SET new.last_updated := UNIX_TIMESTAMP();</em></p></blockquote>
<p>There&#8217;s probably a better way to do this (and I think you can combine both triggers, using &#8220;OR BEFORE UPDATE&#8221;?) but this is the first I&#8217;ve worked with triggers in MySQL and I&#8217;m too lazy to fiddle. Hope it helps. As I&#8217;m sure you can guess, `database_name` is your database name, `last_updated_update_trigger` is the name of your trigger, `table_name` is your table name, and `last_updated` is your field name that will contain the timestamp.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hypn.za.net/blog/2008/09/22/mysql-auto-timestamping-triggers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

