<?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>JortK.nl &#187; show</title>
	<atom:link href="http://www.jortk.nl/tag/show/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jortk.nl</link>
	<description>Mind farts of a crappy coder!</description>
	<lastBuildDate>Thu, 29 Jul 2010 08:21:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>The 20 best practices when using MySQL</title>
		<link>http://www.jortk.nl/2009/11/the-20-best-practices-when-using-mysql/</link>
		<comments>http://www.jortk.nl/2009/11/the-20-best-practices-when-using-mysql/#comments</comments>
		<pubDate>Sat, 28 Nov 2009 09:27:46 +0000</pubDate>
		<dc:creator>JortK</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[best practices]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[db]]></category>
		<category><![CDATA[query]]></category>
		<category><![CDATA[select]]></category>
		<category><![CDATA[show]]></category>

		<guid isPermaLink="false">http://www.jortk.nl/?p=771</guid>
		<description><![CDATA[Just came across this great article with 20 best practices when using MySQL: MySQL best practices. Be sure to check them, the following items are in the article: Optimize Your Queries For the Query Cache LIMIT 1 When Getting a Unique Row Get Suggestions with PROCEDURE ANALYSE() Prepared Statements Split the Big DELETE or INSERT [...]


Related posts:<ol><li><a href='http://www.jortk.nl/2009/11/best-practices-for-organic-seo/' rel='bookmark' title='Permanent Link: Best practices for organic SEO'>Best practices for organic SEO</a> <small>I found a very cool presentation about SEO, the following...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Just came across this great article with 20 best practices when using MySQL: <a title="MySQL best practices" href="http://net.tutsplus.com/tutorials/other/top-20-mysql-best-practices/" target="_blank">MySQL best practices</a>.</p>
<p>Be sure to check them, the following items are in the article:</p>
<ul>
<li>Optimize Your Queries For the Query Cache</li>
<li>LIMIT 1 When Getting a Unique Row</li>
<li>Get Suggestions with PROCEDURE ANALYSE()</li>
<li>Prepared Statements</li>
<li>Split the Big DELETE or INSERT Queries</li>
<li>Be Careful with Persistent Connections</li>
</ul>
<p>And more tips!</p>


<p>Related posts:<ol><li><a href='http://www.jortk.nl/2009/11/best-practices-for-organic-seo/' rel='bookmark' title='Permanent Link: Best practices for organic SEO'>Best practices for organic SEO</a> <small>I found a very cool presentation about SEO, the following...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.jortk.nl/2009/11/the-20-best-practices-when-using-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL &#8211; SHOW Statements</title>
		<link>http://www.jortk.nl/2008/08/mysql-show-statements/</link>
		<comments>http://www.jortk.nl/2008/08/mysql-show-statements/#comments</comments>
		<pubDate>Sun, 31 Aug 2008 13:50:44 +0000</pubDate>
		<dc:creator>JortK</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[show]]></category>

		<guid isPermaLink="false">http://www.jortk.nl/?p=30</guid>
		<description><![CDATA[Today I was playing around with some MySQL statements, because I ran into a problem that I wanted to list my database tables. I found out about the MySQL SHOW statements, and I&#8217;ve found out that they can be very usefull! That why I will describe some of the usefull ways to use the SHOW [...]


Related posts:<ol><li><a href='http://www.jortk.nl/2009/11/the-20-best-practices-when-using-mysql/' rel='bookmark' title='Permanent Link: The 20 best practices when using MySQL'>The 20 best practices when using MySQL</a> <small>Just came across this great article with 20 best practices...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Today I was playing around with some MySQL statements, because I ran into a problem that I wanted to list my database tables.</p>
<p>I found out about the <a title="MYSQL page on the SHOW statements" href="http://dev.mysql.com/doc/refman/5.0/en/show.html" target="_blank">MySQL SHOW statements</a>, and I&#8217;ve found out that they can be very usefull! <img src='http://www.jortk.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>That why I will describe some of the usefull ways to use the SHOW commands in<br />
combination with MySQL.</p>
<p><strong>SHOW DATABASES</strong><br />
If you want to see a list of all the databases that are on your MySQL<br />
server, you could use the following command:</p>
<pre class="brush: sql;">
SHOW DATABASES;
</pre>
<p>This should give you a list of all the databases that are on your MySQL server.</p>
<p>When you want to see a list of all the database with a certain name,<br />
for example test, you can use the following command:</p>
<pre class="brush: sql;">
SHOW DATABASES LIKE '%test%';
</pre>
<p>Because of the LIKE statement this will show databases like `testking`<br />
and `commercetest`.</p>
<p><strong>SHOW TABLES</strong><br />
This option shows you all the tables that are in a certain database.</p>
<p>Use the following command to see all the tables that are in database `testking`:</p>
<pre class="brush: sql;">
SHOW TABLES FROM `testking`;
</pre>
<p>When you only want to see tables with a certain name, for example<br />
user, you should use the following command:</p>
<pre class="brush: sql;">
SHOW TABLES FROM `testking` LIKE '%user%';
</pre>
<p>This statement will show tables like `users` and `userpermissions`.</p>
<p><strong>TIP!<br />
When you want to troubleshoot your database on open tables or checking<br />
the performance, you can use the following command:</strong></p>
<pre class="brush: sql;">
SHOW OPEN TABLES FROM `testking`;
</pre>
<p>This will give you additional information such as the amount of cached<br />
and in-use copies of a table.</p>
<p><strong>SHOW COLUMNS</strong><br />
If you want to get a list of all the columns that are in a table, you<br />
can use the SHOW COLUMNS command:</p>
<pre class="brush: sql;">
USE `testking`;
SHOW COLUMNS FROM `userpermissions`;
</pre>
<p>This will return a list of all the columns in table `userpermissions`<br />
of the `testking` database.</p>
<p>Here is also the possibility to use wildcards, so you can list only<br />
certain columns:</p>
<pre class="brush: sql;">
USE `testking`;
SHOW COLUMNS FROM `userpermissions` LIKE '%admin%';
</pre>
<p>The above example will only show column names with the word admin in it.</p>
<p><strong>TIP!<br />
You can use the FULL parameter to also see the user privileges of the<br />
user which you are login with in the list:</strong></p>
<pre class="brush: sql;">
USE `testking`;
SHOW FULL COLUMNS FROM `userpermissions`;
</pre>
<p><strong>SHOW GRANTS</strong><br />
With the SHOW GRANTS command you can easily see which permissions a<br />
user had on a database.</p>
<p>You can use the following statement to see the permissions of a certain user:</p>
<pre class="brush: sql;">
SHOW GRANTS FOR tkuser
</pre>
<p>&#8216;tkuser&#8217; is the database where we want to see the permissions of.</p>
<p>I hope you found this article usefull <img src='http://www.jortk.nl/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>If you want to know more about all the features of the SHOW statements, please visit the <a title="MYSQL page on the SHOW statements" href="http://dev.mysql.com/doc/refman/5.0/en/show.html" target="_blank">MySQL page</a> which covers all possible features!</p>
<p>If you have any further questions, don&#8217;t hesitate to put them in the<br />
comments! <img src='http://www.jortk.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>


<p>Related posts:<ol><li><a href='http://www.jortk.nl/2009/11/the-20-best-practices-when-using-mysql/' rel='bookmark' title='Permanent Link: The 20 best practices when using MySQL'>The 20 best practices when using MySQL</a> <small>Just came across this great article with 20 best practices...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.jortk.nl/2008/08/mysql-show-statements/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
