<?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>Mindtonic &#187; mysql</title>
	<atom:link href="http://blog.mindtonic.net/tag/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.mindtonic.net</link>
	<description>Thoughts on Music and Application Development</description>
	<lastBuildDate>Fri, 30 Jul 2010 18:08:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Installing MySQL Gem after Installing MySQL From MacPorts</title>
		<link>http://blog.mindtonic.net/installing-mysql-gem-after-installing-mysql-from-macports/</link>
		<comments>http://blog.mindtonic.net/installing-mysql-gem-after-installing-mysql-from-macports/#comments</comments>
		<pubDate>Tue, 25 May 2010 20:25:54 +0000</pubDate>
		<dc:creator>mindtonic</dc:creator>
				<category><![CDATA[Gems]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[MacPorts]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://blog.mindtonic.net/?p=130</guid>
		<description><![CDATA[MacPorts is a fantastic resource for installing and managing libraries on OSX. When working with Ruby on Rails, I installed MySQL (and Postgresql) using MacPorts, but had trouble getting the MySQL gem to install and connect. The error message I received was: Error: uninitialized constant MysqlCompat::MysqlRes Here is the magic formula: sudo gem install -v [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://macports.org">MacPorts</a> is a fantastic resource for installing and managing libraries on OSX.  When working with Ruby on Rails, I installed MySQL (and Postgresql) using MacPorts, but had trouble getting the MySQL gem to install and connect.  The error message I received was:</p>
<p><code>Error: uninitialized constant MysqlCompat::MysqlRes</code></p>
<p>Here is the magic formula:<br />
<code><br />
sudo gem install -v 2.7 --no-rdoc --no-ri mysql --<br />
--with-mysql-dir=/opt/local/lib/mysql5<br />
--with-mysql-config=/opt/local/lib/mysql5/bin/mysql_config;<br />
</code></p>
<p>Source: <a href="http://www.ruby-forum.com/topic/192550">http://www.ruby-forum.com/topic/192550</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mindtonic.net/installing-mysql-gem-after-installing-mysql-from-macports/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Convert MySql Datetime to Javascript Date Object</title>
		<link>http://blog.mindtonic.net/convert-mysql-datetime-to-javascript-date-object/</link>
		<comments>http://blog.mindtonic.net/convert-mysql-datetime-to-javascript-date-object/#comments</comments>
		<pubDate>Thu, 13 Aug 2009 19:04:47 +0000</pubDate>
		<dc:creator>mindtonic</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://blog.mindtonic.net/?p=100</guid>
		<description><![CDATA[function mysqlTimeStampToDate(timestamp) { //function parses mysql datetime string and returns javascript Date object //input has to be in this format: 2007-06-05 15:26:02 var regex=/^([0-9]{2,4})-([0-1][0-9])-([0-3][0-9]) (?:([0-2][0-9]):([0-5][0-9]):([0-5][0-9]))?$/; var parts=timestamp.replace(regex,"$1 $2 $3 $4 $5 $6").split(' '); return new Date(parts[0],parts[1]-1,parts[2],parts[3],parts[4],parts[5]); } Source: http://snippets.dzone.com/posts/show/4132]]></description>
			<content:encoded><![CDATA[<pre>
  function mysqlTimeStampToDate(timestamp) {
    //function parses mysql datetime string and returns javascript Date object
    //input has to be in this format: 2007-06-05 15:26:02
    var regex=/^([0-9]{2,4})-([0-1][0-9])-([0-3][0-9]) (?:([0-2][0-9]):([0-5][0-9]):([0-5][0-9]))?$/;
    var parts=timestamp.replace(regex,"$1 $2 $3 $4 $5 $6").split(' ');
    return new Date(parts[0],parts[1]-1,parts[2],parts[3],parts[4],parts[5]);
  }
</pre>
<p>Source: <a href="http://snippets.dzone.com/posts/show/4132">http://snippets.dzone.com/posts/show/4132</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mindtonic.net/convert-mysql-datetime-to-javascript-date-object/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ultrasphinx MySql Location Error</title>
		<link>http://blog.mindtonic.net/ultrasphinx-mysql-location-error/</link>
		<comments>http://blog.mindtonic.net/ultrasphinx-mysql-location-error/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 18:44:00 +0000</pubDate>
		<dc:creator>mindtonic</dc:creator>
				<category><![CDATA[Rails Plugins]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[sphinx]]></category>
		<category><![CDATA[ultrasphinx]]></category>

		<guid isPermaLink="false">http://blog.mindtonic.net/?p=3</guid>
		<description><![CDATA[After installing all of the necessary elements for Spinx and Ultrasphinx, I began following the instructions from Snax Fauna to get the system up and running. rake ultrasphinx:configure worked fine, but I encountered the following error upon attempting to index my models: rake ultrasphinx:index ... dyld: Library not loaded: /usr/local/mysql/lib/mysql/libmysqlclient.15.dylib Referenced from: /usr/local/bin/indexer Reason: image [...]]]></description>
			<content:encoded><![CDATA[<p>After installing all of the necessary elements for <a href="http://www.sphinxsearch.com/">Spinx</a> and <a href="http://github.com/fauna/ultrasphinx/tree/master">Ultrasphinx</a>, I began following the instructions from <a href="http://github.com/fauna">Snax Fauna</a> to get the system up and running.</p>
<p><code>rake ultrasphinx:configure</code></p>
<p>worked fine, but I encountered the following error upon attempting to index my models:</p>
<p><code>rake ultrasphinx:index<br />
...<br />
dyld: Library not loaded: /usr/local/mysql/lib/mysql/libmysqlclient.15.dylib<br />
Referenced from: /usr/local/bin/indexer<br />
Reason: image not found</code></p>
<p>In my configuration for development, I use the MAMP MySql server.  The rake configure command correctly pulled all of the connection information from database.yml, so that was not the problem.</p>
<p>I searched around and finally encountered this solution from <a href="http://blog.mhartl.com/2008/07/17/searching-a-ruby-on-rails-application-with-sphinx-and-ultrasphinx/">Michael Hartl</a>:</p>
<p><code>$ sudo ln -s /usr/local/mysql/lib /usr/local/mysql/lib/mysql</code></p>
<p>It worked brilliantly.  Thanks Michael.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mindtonic.net/ultrasphinx-mysql-location-error/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
