<?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>Raul Souza Lima - Blog &#187; mysql</title>
	<atom:link href="http://raulsouzalima.com/category/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://raulsouzalima.com</link>
	<description>Por Raul Souza Lima</description>
	<lastBuildDate>Mon, 25 Jan 2010 09:42:10 +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>Problema com a biblioteca MySQL no Rails 2.3 (window$)</title>
		<link>http://raulsouzalima.com/2009/09/03/problema-com-a-biblioteca-mysql-no-rails-2-3-windows/</link>
		<comments>http://raulsouzalima.com/2009/09/03/problema-com-a-biblioteca-mysql-no-rails-2-3-windows/#comments</comments>
		<pubDate>Thu, 03 Sep 2009 15:03:25 +0000</pubDate>
		<dc:creator>Raul Souza Lima</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://blog.webxperience.com.br/?p=152</guid>
		<description><![CDATA[Recentemente tive um problema ao tentar rodar migrations no rails 2.3 utilizando banco MySQL no Window$. Em casa utilizo somente linux, portanto, não tenho problemas do tipo, mas no trabalho como só faço programação de interfaces, utilizo o bendito &#8220;S.O&#8221;&#8230; Sempre que tentava rodar uma migration, me retornava o erro: query: not connected: CREATE TABLE [...]]]></description>
			<content:encoded><![CDATA[<p>Recentemente tive um problema ao tentar rodar migrations no rails 2.3 utilizando banco MySQL no Window$.<br />
Em casa utilizo somente linux, portanto, não tenho problemas do tipo, mas no trabalho como só faço programação de interfaces, utilizo o bendito &#8220;S.O&#8221;&#8230;</p>
<p>Sempre que tentava rodar uma migration, me retornava o erro:</p>
<pre class="text"><code>query: not connected: CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB</code></pre>
<p>Pesquisei um pouco na internet e o que percebi é que a biblioteca padrão do MySQL não trabalha muito bem com o Rails 2.3. Para resolver isso basta utilizar uma biblioteca antiga (libmySQL.dll).<br />
Que você pode obter aqui: <a href="http://instantrails.rubyforge.org/svn/trunk/InstantRails-win/InstantRails/mysql/bin/libmySQL.dll" target="_blank">http://instantrails.rubyforge.org/svn/trunk/InstantRails-win/InstantRails/mysql/bin/libmySQL.dll</a></p>
<p>Coloque a dll baixada em <span style="font-family: Courier New;">&lt;diretorio ruby&gt;\bin\ e restarte o serviço MySQL.<br />
</span></p>
]]></content:encoded>
			<wfw:commentRss>http://raulsouzalima.com/2009/09/03/problema-com-a-biblioteca-mysql-no-rails-2-3-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
