<?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>eli geske &#187; MySQL</title>
	<atom:link href="http://eligeske.com/category/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://eligeske.com</link>
	<description>Good information for the geeky kind.</description>
	<lastBuildDate>Wed, 25 Jan 2012 00:20:25 +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>#2006 MySQL server has gone away</title>
		<link>http://eligeske.com/mysql/2006-mysql-server-has-gone-away/</link>
		<comments>http://eligeske.com/mysql/2006-mysql-server-has-gone-away/#comments</comments>
		<pubDate>Sat, 10 Sep 2011 23:15:21 +0000</pubDate>
		<dc:creator>eligeske</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[#2006]]></category>
		<category><![CDATA[import]]></category>
		<category><![CDATA[PHPMYADMIN Error]]></category>

		<guid isPermaLink="false">http://eligeske.com/?p=378</guid>
		<description><![CDATA[Error message "#2006 MySQL server has gone away" coming from PHPMYADMIN.]]></description>
			<content:encoded><![CDATA[<p>Recently I was doing an import of a clients database from production which was so so in size. But I was installing it on a fresh install of WAMP Server. First it died because of upload_max_filesize inside the php.ini, that one is a simple one. After changing that to a size larger than the db import script PHPMYADMIN threw the #2006 MySQL server has gone away.</p>
<p>After scouring the web and the mysql site and found that if a packet is too large the mysql connection will be closed.</p>
<p>So to set the max size allowed for the packet in mysql change:</p>
<div class="wp-synhighlighter-inner"><pre class="php" style="font-family:arial;">max_allowed_packet = 60M</pre></div>
<p>By default it was set to 1M and 60 seemed to be plenty to do the trick.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://eligeske.com/mysql/2006-mysql-server-has-gone-away/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL query for FirstName, LastName search</title>
		<link>http://eligeske.com/mysql/mysql-query-for-firstname-lastname-search/</link>
		<comments>http://eligeske.com/mysql/mysql-query-for-firstname-lastname-search/#comments</comments>
		<pubDate>Fri, 19 Aug 2011 17:13:04 +0000</pubDate>
		<dc:creator>eligeske</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[combined query]]></category>
		<category><![CDATA[firstname lastname]]></category>
		<category><![CDATA[mysql search]]></category>
		<category><![CDATA[two field search]]></category>

		<guid isPermaLink="false">http://eligeske.com/?p=388</guid>
		<description><![CDATA[How to search a MySQL database combining two fields. The example shows how to search a full name when the name is split by firstname and lastname.]]></description>
			<content:encoded><![CDATA[<p>In most cases databases are set up to split a persons first name and last name. So when doing a search for people in a database you need to join the two fields together in the search statement.</p>
<p>Or you could split it into separate queries based on the space, but that would add more server load and function time, not good.</p>
<p>It&#8217;s much easier to use the MySQL concat() method, or concat_ws() which is concat with a seperator.</p>
<div class="wp-synhighlighter-inner"><pre class="mysql" style="font-family:arial;"><span style="color: #990099; font-weight: bold;">SELECT</span> <span style="color: #FF00FF;">*</span> <span style="color: #990099; font-weight: bold;">FROM</span> <span style="color: #008000;">`table_name`</span> <span style="color: #990099; font-weight: bold;">WHERE</span> <span style="color: #000099; font-weight: bold;">concat_ws</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008000;">' '</span><span style="color: #FF00FF;">,</span> <span style="color: #008000;">'FirstName'</span><span style="color: #FF00FF;">,</span> <span style="color: #008000;">'LastName'</span><span style="color: #FF00FF;">&#41;</span><span style="color: #FF00FF;">;</span></pre></div>
<p><strong>Please note that in the first quotes is a space.</strong></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://eligeske.com/mysql/mysql-query-for-firstname-lastname-search/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

