<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://jennyandlih.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>MySQL</title>
 <link>http://jennyandlih.com/note-type/tech/mysql</link>
 <description>The taxonomy view.</description>
 <language>en</language>
<item>
 <title>Geo Spatial Indexing with Sphinx</title>
 <link>http://jennyandlih.com/geo-spatial-indexing-sphinx</link>
 <description>&lt;ul class=&quot;easylist&quot;&gt;
&lt;li&gt;Installation&lt;/p&gt;
&lt;ul class=&quot;easylist sublist&quot;&gt;
&lt;li&gt;Go to &lt;a href=&quot;http://sphinxsearch.com/downloads/&quot; title=&quot;http://sphinxsearch.com/downloads/&quot;&gt;http://sphinxsearch.com/downloads/&lt;/a&gt; and download the latest release.
&lt;/li&gt;
&lt;li&gt;Follow the instructions described on that page. In a nutsell, you do ./configure, then make, then sudo make install.
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;ul class=&quot;easylist&quot;&gt;
&lt;li&gt; Configure your sphinx.conf&lt;/p&gt;
&lt;ul class=&quot;easylist sublist&quot;&gt;
&lt;li&gt;Go to /etc/sphinxsearch/ and make a new file sphinx.conf.
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;ul class=&quot;easylist&quot;&gt;
&lt;li&gt; Add the following to your sphinx.conf. Modify database username, password, databasename, the sql statement, etc., but feel free to use the following as a template.
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;code&gt;&lt;br /&gt;
source hostel_geo&lt;br /&gt;
{&lt;br /&gt;
# data source type. mandatory, no default value&lt;br /&gt;
type					= mysql&lt;br /&gt;
&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://jennyandlih.com/geo-spatial-indexing-sphinx&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://jennyandlih.com/geo-spatial-indexing-sphinx#comments</comments>
 <category domain="http://jennyandlih.com/note-type/tech/mysql">MySQL</category>
 <pubDate>Sat, 05 Nov 2011 02:02:03 -0600</pubDate>
 <dc:creator>lih</dc:creator>
 <guid isPermaLink="false">2272 at http://jennyandlih.com</guid>
</item>
<item>
 <title>UPDATE using JOIN</title>
 <link>http://jennyandlih.com/update-using-join</link>
 <description>&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;update content_type_message ctm join node n on ctm.nid = n.nid set&lt;br /&gt;&amp;nbsp; ctm.field_message_recipientalert_value = unix_timestamp(date_add(n.created, interval 24 hour)), &lt;br /&gt;&amp;nbsp; ctm.field_message_senderalert_value = unix_timestamp(date_add(n.created, interval 24 hour));&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;From &lt;a href=&quot;http://dev.mysql.com/doc/refman/5.1/en/update.html&quot;&gt;12.2.10. UPDATE Syntax&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote&gt;&lt;div class=&quot;quote_start&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;quote_end&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;a href=&quot;http://jennyandlih.com/update-using-join&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://jennyandlih.com/update-using-join#comments</comments>
 <category domain="http://jennyandlih.com/note-type/tech/mysql">MySQL</category>
 <pubDate>Fri, 18 Jul 2008 12:58:29 -0600</pubDate>
 <dc:creator>jenny</dc:creator>
 <guid isPermaLink="false">694 at http://jennyandlih.com</guid>
</item>
</channel>
</rss>

