<?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>Whiteforest &#187; Database</title>
	<atom:link href="http://www.whiteforest.co.uk/category/database/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.whiteforest.co.uk</link>
	<description>Mark Robson&#039;s web development blog</description>
	<lastBuildDate>Tue, 25 Jan 2011 15:08:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Separating MySQL Username and Host</title>
		<link>http://www.whiteforest.co.uk/2009/05/separating-mysql-username-and-host/</link>
		<comments>http://www.whiteforest.co.uk/2009/05/separating-mysql-username-and-host/#comments</comments>
		<pubDate>Wed, 06 May 2009 14:30:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.whiteforest.co.uk/?p=128</guid>
		<description><![CDATA[As the MySQL USER() command returns users as &#8216;user&#8217;@'host&#8217;, it can be difficult to do straight comparasons. One way to extract both username and host is by using SUBSTRING_INDEX. For example, in a stored procedure you could use: -- USER SELECT SUBSTRING_INDEX(USER(), '@', 1) INTO txtUsername; -- HOST SELECT SUBSTRING_INDEX(USER(), '@', -1) INTO txtHost; Voila!]]></description>
		<wfw:commentRss>http://www.whiteforest.co.uk/2009/05/separating-mysql-username-and-host/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Users and Permissions in MySQL</title>
		<link>http://www.whiteforest.co.uk/2009/03/users-and-permissions-in-mysql/</link>
		<comments>http://www.whiteforest.co.uk/2009/03/users-and-permissions-in-mysql/#comments</comments>
		<pubDate>Tue, 24 Mar 2009 19:07:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://www.whiteforest.co.uk/?p=125</guid>
		<description><![CDATA[The best way for creating users in MySQL is by using CREATE USER or GRANT statements. Another way is by manipulating MySQLs grant tables, but this is not recommended. By default the superuser is root. A password must be specified for this. It is best if this is only used for superadmin purposes. For new [...]]]></description>
		<wfw:commentRss>http://www.whiteforest.co.uk/2009/03/users-and-permissions-in-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Backing up a MySQL Database</title>
		<link>http://www.whiteforest.co.uk/2009/03/backing-up-a-mysql-database/</link>
		<comments>http://www.whiteforest.co.uk/2009/03/backing-up-a-mysql-database/#comments</comments>
		<pubDate>Tue, 24 Mar 2009 19:03:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.whiteforest.co.uk/?p=123</guid>
		<description><![CDATA[Using cmd prompt in Windows, navigate to the bin directory where MySQL has been installed. There will be a file called &#8220;mysqldump.exe&#8221; in that directory. Enter the following command: mysqldump -u root -ppass --databases your_db > backup.sql Notice that there is no space between the -p and the password, this is a bug in MySQL. [...]]]></description>
		<wfw:commentRss>http://www.whiteforest.co.uk/2009/03/backing-up-a-mysql-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Copying One Table Into Another Using MySQL</title>
		<link>http://www.whiteforest.co.uk/2009/02/copying-one-table-into-another-using-mysql/</link>
		<comments>http://www.whiteforest.co.uk/2009/02/copying-one-table-into-another-using-mysql/#comments</comments>
		<pubDate>Tue, 17 Feb 2009 15:12:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.whiteforest.co.uk/?p=87</guid>
		<description><![CDATA[I wanted to copy the contents of an existing table I had which only had certain fields populated. INSERT INTO new-table (field1, field2) SELECT distinct original-field1, original-field2 FROM existing-table WHERE original-field1 is not null]]></description>
		<wfw:commentRss>http://www.whiteforest.co.uk/2009/02/copying-one-table-into-another-using-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Random SQL Results</title>
		<link>http://www.whiteforest.co.uk/2008/11/random-sql-results/</link>
		<comments>http://www.whiteforest.co.uk/2008/11/random-sql-results/#comments</comments>
		<pubDate>Wed, 12 Nov 2008 23:07:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://www.whiteforest.co.uk/?p=52</guid>
		<description><![CDATA[Last year I needed to display 3 random featured items. The solution was very simple using MySQL with this query: SELECT * FROM `table` WHERE `column` = 'criteria' ORDER BY RAND() LIMIT 3;]]></description>
		<wfw:commentRss>http://www.whiteforest.co.uk/2008/11/random-sql-results/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Spool in Oracle</title>
		<link>http://www.whiteforest.co.uk/2008/09/spool-in-oracle/</link>
		<comments>http://www.whiteforest.co.uk/2008/09/spool-in-oracle/#comments</comments>
		<pubDate>Wed, 24 Sep 2008 07:59:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://www.whiteforest.co.uk/?p=20</guid>
		<description><![CDATA[Spool prints out the current terminal text to a file SQL> Spool on SQL> set heading off Spool c:\spooltext.txt SQL> your_Query SQL> Spool off]]></description>
		<wfw:commentRss>http://www.whiteforest.co.uk/2008/09/spool-in-oracle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

