<?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>Lacisoft&#039;s &#187; mysql</title>
	<atom:link href="http://www.lacisoft.com/blog/tag/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lacisoft.com/blog</link>
	<description>SELECT * FROM lacisoft</description>
	<lastBuildDate>Mon, 30 Jan 2012 17:42:20 +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>MySQL &#8211; Sort results in order by list</title>
		<link>http://www.lacisoft.com/blog/2011/02/01/mysql-sort-results-in-order-by-list/</link>
		<comments>http://www.lacisoft.com/blog/2011/02/01/mysql-sort-results-in-order-by-list/#comments</comments>
		<pubDate>Tue, 01 Feb 2011 05:23:37 +0000</pubDate>
		<dc:creator>lacisoft</dc:creator>
				<category><![CDATA[web development]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[order]]></category>
		<category><![CDATA[results]]></category>

		<guid isPermaLink="false">http://www.lacisoft.com/blog/?p=666</guid>
		<description><![CDATA[I needed today to sort a result set in MySQL after a list of id&#8217;s given. My original query was: SELECT uid, pid FROM pages WHERE uid IN (15,17,21,87); So the exact order of records i needed was 15, 17, 21, 87. But i wasn&#8217;t getting the results in this order. After digging around for [...]
Related posts:<ol>
<li><a href='http://www.lacisoft.com/blog/2007/07/20/google-and-yahoo-second-quarter-results-and-more/' rel='bookmark' title='Google and Yahoo. Second quarter results and more.'>Google and Yahoo. Second quarter results and more.</a></li>
<li><a href='http://www.lacisoft.com/blog/2010/01/20/importing-large-files-into-a-mysql-database/' rel='bookmark' title='Importing large files into a MySQL database'>Importing large files into a MySQL database</a></li>
<li><a href='http://www.lacisoft.com/blog/2009/04/10/how-to-make-a-drag-and-drop-sorted-list-with-jquery-sortable/' rel='bookmark' title='How to make a drag and drop sorted list with jQuery Sortable'>How to make a drag and drop sorted list with jQuery Sortable</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I needed today to sort a result set in MySQL after a list of id&#8217;s given. My original query was:</p>
<pre class="brush: sql;">SELECT uid, pid FROM pages WHERE uid IN (15,17,21,87);</pre>
<p>So the exact order of records i needed was 15, 17, 21, 87. But i wasn&#8217;t getting the results in this order. After digging around for a while i found the solution which is quite easy! I needed to alter my query a little bit to receive the desired order of results</p>
<pre class="brush: sql;">SELECT uid, pid FROM pages WHERE uid IN (15,17,21,87) ORDER BY FIELD(uid, 15,17,21,81);</pre>
<p>And voila, it works!</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.lacisoft.com%2Fblog%2F2011%2F02%2F01%2Fmysql-sort-results-in-order-by-list%2F&amp;title=MySQL%20%26%238211%3B%20Sort%20results%20in%20order%20by%20list" id="wpa2a_2"><img src="http://www.lacisoft.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><p>Related posts:<ol>
<li><a href='http://www.lacisoft.com/blog/2007/07/20/google-and-yahoo-second-quarter-results-and-more/' rel='bookmark' title='Google and Yahoo. Second quarter results and more.'>Google and Yahoo. Second quarter results and more.</a></li>
<li><a href='http://www.lacisoft.com/blog/2010/01/20/importing-large-files-into-a-mysql-database/' rel='bookmark' title='Importing large files into a MySQL database'>Importing large files into a MySQL database</a></li>
<li><a href='http://www.lacisoft.com/blog/2009/04/10/how-to-make-a-drag-and-drop-sorted-list-with-jquery-sortable/' rel='bookmark' title='How to make a drag and drop sorted list with jQuery Sortable'>How to make a drag and drop sorted list with jQuery Sortable</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.lacisoft.com/blog/2011/02/01/mysql-sort-results-in-order-by-list/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Importing large files into a MySQL database</title>
		<link>http://www.lacisoft.com/blog/2010/01/20/importing-large-files-into-a-mysql-database/</link>
		<comments>http://www.lacisoft.com/blog/2010/01/20/importing-large-files-into-a-mysql-database/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 11:54:39 +0000</pubDate>
		<dc:creator>lacisoft</dc:creator>
				<category><![CDATA[web development]]></category>
		<category><![CDATA[import]]></category>
		<category><![CDATA[large files]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php.ini]]></category>
		<category><![CDATA[phpMyAdmin]]></category>
		<category><![CDATA[settings]]></category>

		<guid isPermaLink="false">http://www.lacisoft.com/blog/?p=380</guid>
		<description><![CDATA[From time to time i have to insert really large files into MySQL. And sometimes there are problems because you don&#8217;t have access to the mysql command line utility from the server to issue the source command (this lets you import dumps or sql files). So you have to use phpMyAdmin or some other web [...]
Related posts:<ol>
<li><a href='http://www.lacisoft.com/blog/2008/11/20/how-to-generate-pdf-files-dynamically-using-php-and-haru/' rel='bookmark' title='How to generate PDF files dynamically using PHP and Haru'>How to generate PDF files dynamically using PHP and Haru</a></li>
<li><a href='http://www.lacisoft.com/blog/2011/02/01/mysql-sort-results-in-order-by-list/' rel='bookmark' title='MySQL &#8211; Sort results in order by list'>MySQL &#8211; Sort results in order by list</a></li>
<li><a href='http://www.lacisoft.com/blog/2009/06/17/the-state-of-mysql/' rel='bookmark' title='The State of MySQL'>The State of MySQL</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>From time to time i have to insert really large files into MySQL. And sometimes there are problems because you don&#8217;t have access to the mysql command line utility from the server to issue the source command (this lets you import dumps or sql files). So you have to use phpMyAdmin or some other web based utility.</p>
<p>But also too often one runs into the barriers set by PHP, specifically the configuration directives from php.ini: upload_max_filesize, memory_limit and post_max_size. If these are not set to a decent value you won&#8217;t be able to upload really large files and phpMyAdmin will fail.  If you have access to these then you can modify them and you will have the ability to upload the files.</p>
<p>But if not there is another solution. Open your config.inc.php from the phpMyAdmin directory and search for the following setting:</p>
<p>$cfg['UploadDir']</p>
<p>If it is present then modify it to point to a directory within the phpMyAdmin directory (you can call it &#8220;uploads&#8221;) or if not you can add it. Something like this:</p>
<p>$cfg['UploadDir'] = &#8216;uploads&#8217;;</p>
<p>Then you have to make sure that the directory &#8220;uploads&#8221; exists in your phpMyAdmin installation directory.</p>
<p>That&#8217;s all, now when you want to import a file just upload it there (with an ftp client) in that folder and in phpMyAdmin at the import screen there will be a select with the sql files  that exist in the directory. You can import this way really huge files.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.lacisoft.com%2Fblog%2F2010%2F01%2F20%2Fimporting-large-files-into-a-mysql-database%2F&amp;title=Importing%20large%20files%20into%20a%20MySQL%20database" id="wpa2a_4"><img src="http://www.lacisoft.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><p>Related posts:<ol>
<li><a href='http://www.lacisoft.com/blog/2008/11/20/how-to-generate-pdf-files-dynamically-using-php-and-haru/' rel='bookmark' title='How to generate PDF files dynamically using PHP and Haru'>How to generate PDF files dynamically using PHP and Haru</a></li>
<li><a href='http://www.lacisoft.com/blog/2011/02/01/mysql-sort-results-in-order-by-list/' rel='bookmark' title='MySQL &#8211; Sort results in order by list'>MySQL &#8211; Sort results in order by list</a></li>
<li><a href='http://www.lacisoft.com/blog/2009/06/17/the-state-of-mysql/' rel='bookmark' title='The State of MySQL'>The State of MySQL</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.lacisoft.com/blog/2010/01/20/importing-large-files-into-a-mysql-database/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Weekly article batch. Edition 1</title>
		<link>http://www.lacisoft.com/blog/2010/01/07/weekly-article-batch-edition-1/</link>
		<comments>http://www.lacisoft.com/blog/2010/01/07/weekly-article-batch-edition-1/#comments</comments>
		<pubDate>Thu, 07 Jan 2010 14:26:56 +0000</pubDate>
		<dc:creator>lacisoft</dc:creator>
				<category><![CDATA[Weekly article batch]]></category>
		<category><![CDATA[articles]]></category>
		<category><![CDATA[code snippets]]></category>
		<category><![CDATA[exception handling]]></category>
		<category><![CDATA[html 5]]></category>
		<category><![CDATA[if]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[latency]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[speed]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[weekly]]></category>
		<category><![CDATA[where]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.lacisoft.com/blog/?p=363</guid>
		<description><![CDATA[I read many articles and most times i don&#8217;t bookmark them even if they are fairly good articles and can be useful in some situations. I thought i should save them somewhere, but they are not so important to be added to bookmarks. So starting with this year i will publish a post with these [...]
Related posts:<ol>
<li><a href='http://www.lacisoft.com/blog/2010/01/14/weekly-article-batch-2/' rel='bookmark' title='Weekly article batch 2'>Weekly article batch 2</a></li>
<li><a href='http://www.lacisoft.com/blog/2010/07/05/weekly-article-batch-3/' rel='bookmark' title='Weekly article batch 3'>Weekly article batch 3</a></li>
<li><a href='http://www.lacisoft.com/blog/2012/01/30/typo3-market-share-statistics2012-edition/' rel='bookmark' title='TYPO3 market share statistics&ndash;2012 edition'>TYPO3 market share statistics&ndash;2012 edition</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I read many articles and most times i don&#8217;t bookmark them even if they are fairly good articles and can be useful in some situations. I thought i should save them somewhere, but they are not so important to be added to bookmarks.</p>
<p>So starting with this year i will publish a post with these articles every week on thursday.  This way i can find them when i need them and also maybe some of you can find something interesting to read among them.</p>
<p>The order is arbitrary and some of the articles may be older then one week. The fact is that i read them this week so they get mentioned here this week.</p>
<p>Interesting articles this week:</p>
<ol>
<li><a href="http://www.designer-daily.com/15-useful-jquery-plugins-and-tutorials-5207">15 useful jQuery plugins and tutorials</a> &#8211; published by designer-daily.com, contains a good selection of jQuery plugins and tutorials</li>
<li><a href="http://www.devshed.com/c/a/PHP/Exception-Handling-in-PHP/">Exception handling in PHP</a> &#8211; published by devshed.com, we all come across this: exception handling, a nice overview on the topic</li>
<li><a href="http://www.electrictoolbox.com/mysql-using-if-in-where/">MySQL : Using IF in a WHERE clause</a> &#8211; published by electrictoolbox.com, although not a good solution &#8211; an IF is possible in a WHERE clause and i post this here only for reference &#8211; i not recommend using such solutions</li>
<li><a href="http://diveintohtml5.org/">Dive into HTML 5</a> &#8211; published by diveintohtml5.org, HTML 5 is here and this is a fairly good intro in it</li>
<li><a href="http://webdesignledger.com/tips/13-useful-code-snippets-for-wordpress-development">13 Useful Code Snippets for WordPress development</a>, published by webdesignledger.com, WordPress in more and more a part of our life and this article can be handy if we want to customize some of the things in WordPress</li>
<li><a href="http://buytaert.net/speed-matters">Speed matters</a> , published by Dries Buytaert on buytaert.net , increasing latency will drive your visitors away as one Google research paper points it out. So think twice before adding a feature that hurts performance</li>
</ol>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.lacisoft.com%2Fblog%2F2010%2F01%2F07%2Fweekly-article-batch-edition-1%2F&amp;title=Weekly%20article%20batch.%20Edition%201" id="wpa2a_6"><img src="http://www.lacisoft.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><p>Related posts:<ol>
<li><a href='http://www.lacisoft.com/blog/2010/01/14/weekly-article-batch-2/' rel='bookmark' title='Weekly article batch 2'>Weekly article batch 2</a></li>
<li><a href='http://www.lacisoft.com/blog/2010/07/05/weekly-article-batch-3/' rel='bookmark' title='Weekly article batch 3'>Weekly article batch 3</a></li>
<li><a href='http://www.lacisoft.com/blog/2012/01/30/typo3-market-share-statistics2012-edition/' rel='bookmark' title='TYPO3 market share statistics&ndash;2012 edition'>TYPO3 market share statistics&ndash;2012 edition</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.lacisoft.com/blog/2010/01/07/weekly-article-batch-edition-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>3 books for building revolutionary web applications</title>
		<link>http://www.lacisoft.com/blog/2008/10/31/3-books-for-building-revolutionary-web-applications/</link>
		<comments>http://www.lacisoft.com/blog/2008/10/31/3-books-for-building-revolutionary-web-applications/#comments</comments>
		<pubDate>Fri, 31 Oct 2008 10:14:46 +0000</pubDate>
		<dc:creator>lacisoft</dc:creator>
				<category><![CDATA[Web apps]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[books]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.lacisoft.com/blog/?p=44</guid>
		<description><![CDATA[So i read again. That is not news. But i wanted to share with you what i read lately. Below you can find 3 very good books that can help you if you want to build scalable and revolutionary web applications. Maybe you know some of them, maybe not, but here they are anyway: Building [...]
Related posts:<ol>
<li><a href='http://www.lacisoft.com/blog/2008/09/19/6-books-for-developers-working-with-drupal-6-and-jquery/' rel='bookmark' title='6 books for developers working with Drupal 6 and Jquery'>6 books for developers working with Drupal 6 and Jquery</a></li>
<li><a href='http://www.lacisoft.com/blog/2008/12/05/3-books-for-typo3-developers/' rel='bookmark' title='3 books for Typo3 developers'>3 books for Typo3 developers</a></li>
<li><a href='http://www.lacisoft.com/blog/2010/01/07/weekly-article-batch-edition-1/' rel='bookmark' title='Weekly article batch. Edition 1'>Weekly article batch. Edition 1</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>So i read again. That is not news. But i wanted to share with you what i read lately. Below you can find 3 very good books that can help you if you want to build scalable and revolutionary web applications. Maybe you know some of them, maybe not, but here they are anyway:</p>
<ol>
<li>
<img class="alignleft size-full wp-image-45" title="book_scalable" src="http://www.lacisoft.com/blog/wp-content/uploads/2008/10/book_scalable.jpg" alt="" align="left" width="240" height="240" /><strong>Building Scalable Web Sites</strong> by Cal Henderson (published by O&#8217;Reilly) <a href="http://www.amazon.com/Building-Scalable-Web-Sites-applications/dp/0596102356/ref=pd_sim_b_4/180-1891497-1389321">Amazon link</a>
</li>
<li>
<img class="size-full wp-image-46 alignleft" style="float: left;" title="book_hpmysql" src="http://www.lacisoft.com/blog/wp-content/uploads/2008/10/book_hpmysql.jpg" alt="" width="240" height="240" /><strong>High Performance MySQL</strong> by Jeremy Zawodny and Derek J. Balling (publised by O&#8217;Reilly) <a href="http://www.amazon.com/High-Performance-MySQL-Jeremy-Zawodny/dp/0596003064/ref=pd_sim_b_4">Amazon link</a>
</li>
<li>
<img class="size-medium wp-image-47 alignleft" style="float: left; " title="book_collectivei" src="http://www.lacisoft.com/blog/wp-content/uploads/2008/10/book_collectivei.jpg" alt="" width="240" height="240" /><strong>Programming Collective Intelligence</strong> by Toby Segaran (published by O&#8217;Reilly) <a href="http://www.amazon.com/Programming-Collective-Intelligence-Building-Applications/dp/0596529325/ref=pd_sim_b_1/180-1891497-1389321">Amazon link</a></li>
</ol>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.lacisoft.com%2Fblog%2F2008%2F10%2F31%2F3-books-for-building-revolutionary-web-applications%2F&amp;title=3%20books%20for%20building%20revolutionary%20web%20applications" id="wpa2a_8"><img src="http://www.lacisoft.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><p>Related posts:<ol>
<li><a href='http://www.lacisoft.com/blog/2008/09/19/6-books-for-developers-working-with-drupal-6-and-jquery/' rel='bookmark' title='6 books for developers working with Drupal 6 and Jquery'>6 books for developers working with Drupal 6 and Jquery</a></li>
<li><a href='http://www.lacisoft.com/blog/2008/12/05/3-books-for-typo3-developers/' rel='bookmark' title='3 books for Typo3 developers'>3 books for Typo3 developers</a></li>
<li><a href='http://www.lacisoft.com/blog/2010/01/07/weekly-article-batch-edition-1/' rel='bookmark' title='Weekly article batch. Edition 1'>Weekly article batch. Edition 1</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.lacisoft.com/blog/2008/10/31/3-books-for-building-revolutionary-web-applications/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

