<?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>Learning Rails &#187; Gnarly Bugs</title>
	<atom:link href="http://joelandkaren.com/learningrails/archives/category/gnarly-bugs/feed" rel="self" type="application/rss+xml" />
	<link>http://joelandkaren.com/learningrails</link>
	<description>Joel Greenberg's Experience in Learning Web Development with Ruby on Rails</description>
	<lastBuildDate>Mon, 16 Jun 2008 23:23:36 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Writing my first rails app with a database</title>
		<link>http://joelandkaren.com/learningrails/archives/9</link>
		<comments>http://joelandkaren.com/learningrails/archives/9#comments</comments>
		<pubDate>Sat, 22 Apr 2006 19:13:49 +0000</pubDate>
		<dc:creator>joelg</dc:creator>
				<category><![CDATA[Gnarly Bugs]]></category>
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://joelandkaren.com/learningrails/archives/9</guid>
		<description><![CDATA[So, yesterday I figured out that I could connect to the MySQL database using a different port: 3306.  Today, I tried using MySQLFront.  Bummer, but I still couldn&#8217;t connect to a database.  I looked for a free MySQL client and found SQL Manager 2005 Lite.  That finally worked.  So, I [...]]]></description>
			<content:encoded><![CDATA[<p>So, yesterday I figured out that I could connect to the MySQL database using a different port: 3306.  Today, I tried using <a href="http://www.mysqlfront.de/">MySQLFront.</a>  Bummer, but I still couldn&#8217;t connect to a database.  I looked for a free MySQL client and found <a href="http://www.sqlmanager.net/products/mssql/manager">SQL Manager 2005 Lite.</a>  That finally worked.  So, I created my first database-driven Rails app, following along in  <em>Agile Web Development With Rails</em>.</p>
<p>Finally, on my way to learning Rails!</p>
]]></content:encoded>
			<wfw:commentRss>http://joelandkaren.com/learningrails/archives/9/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Can&#8217;t Make MySQL Table for Rails</title>
		<link>http://joelandkaren.com/learningrails/archives/8</link>
		<comments>http://joelandkaren.com/learningrails/archives/8#comments</comments>
		<pubDate>Fri, 21 Apr 2006 14:00:37 +0000</pubDate>
		<dc:creator>joelg</dc:creator>
				<category><![CDATA[Gnarly Bugs]]></category>
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://joelandkaren.com/learningrails/archives/8</guid>
		<description><![CDATA[I ran into my first &#8220;bug&#8221; the stopped me cold. I define a &#8220;bug&#8221; as anything that prevents me from moving forward, whether it&#8217;s code, configuration, poor interface, etc. It&#8217;s a practical definition based upon the fact that I&#8217;m programming to solve a problem, to get something done, and if I can&#8217;t, then I need [...]]]></description>
			<content:encoded><![CDATA[<p>I ran into my first &#8220;bug&#8221; the stopped me cold. I define a &#8220;bug&#8221; as anything that prevents me from moving forward, whether it&#8217;s code, configuration, poor interface, etc. It&#8217;s a practical definition based upon the fact that I&#8217;m programming to solve a problem, to get something done, and if I can&#8217;t, then I need to fix it so I can.</p>
<p>The problem was permissions on the MySQL database when following along on pg. 55 of <a href="http://www.amazon.com/exec/obidos/redirect?link_code=ur2&amp;#038;tag=friendstalkin-20&amp;#038;camp=1789&amp;#038;creative=9325&amp;#038;path=http%3A%2F%2Fwww.amazon.com%2Fgp%2Fproduct%2F097669400X%2Fsr%3D8-1%2Fqid%3D1145457858%2Fref%3Dpd_bbs_1%3F%255Fencoding%3DUTF8">Agile Web Development with Rails : A Pragmatic Guide</a><img width="1" height="1" border="0" style="border: medium none  ! important; margin: 0px ! important" src="http://www.assoc-amazon.com/e/ir?t=friendstalkin-20&amp;amp;l=ur2&amp;amp;o=1" />.  It&#8217;s the first exercise of hooking up a database to Rails.</p>
<p>As part of building the MySQL table, the exercise has you execute the following line:</p>
<blockquote>
<pre>depot> mysql depot_development</pre>
</blockquote>
<p>Up to this point in the exercise, connecting to the database was done with the username &#8220;root&#8221; and no password. Everything worked fine. But executing the above line caused the following error.</p>
<blockquote>
<pre>ERROR 1045 (28000): Access denied for user 'ODBC'@'localhost' (using password: NO)</pre>
</blockquote>
<p>Can&#8217;t finish creating the database.Â  Rats!</p>
<h4>The Solution</h4>
<p>Long story short, the solution was found in the MySQL Error Log.Â  In it, I kept on seeing citations that had &#8220;port:3306&#8243; in it.</p>
<p>Instead of trying to connect and build the database from the command line, like it&#8217;s illustrated in the book, I decided to use <a href="http://www.mysqlfront.de/">MySQL-Front</a> to connect to the database.Â Â  But I still could not.<br />
Now, the server that ships with Rails, WEBrick, apparently is on port 3000.Â  I tried that port in MySQL-Front.Â  No luck.</p>
<p>So, I tried using port 3306.Â  It connected just fine!</p>
<p>Now, I haven&#8217;t actually tried to manipulate the table in MySQL-front, or Rails, just yet because I&#8217;ve run out of timing trying to solve this problem, but I think I solved the problem.</p>
]]></content:encoded>
			<wfw:commentRss>http://joelandkaren.com/learningrails/archives/8/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

