# There is something rotten in the state of Denmark

**URL:** <https://www.ruby-forum.com/t/there-is-something-rotten-in-the-state-of-denmark/67828>\
**Category:** Rails\
**Created:** [September 7, 2006, 2:01am UTC](https://www.ruby-forum.com/t/there-is-something-rotten-in-the-state-of-denmark/67828 "2006-09-07T02:01:19Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![hamlet](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/b9bd4f/32.png) [@hamlet](https://www.ruby-forum.com/u/hamlet)\
**Post date:** [September 7, 2006, 2:01am UTC](https://www.ruby-forum.com/t/there-is-something-rotten-in-the-state-of-denmark/67828/1 "2006-09-07T02:01:19Z")

</div>

i’ve read there’s a guy from denmark who has brought us a ‘web  
development that doesn’t hurt’. so i say to myself: ohh…let me try  
this ‘web framework optimized for bla bla’. So, my first tutorial:  
[Radar – O’Reilly](http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html). But when i try  
to see my first page ([http://127.0.0.1:3000/recipe/new](http://127.0.0.1:3000/recipe/new)), i get this WTF  
error: ‘Mysql::Error: Lost connection to MySQL server during query: SHOW  
FIELDS FROM recipes’.  
My config: win xp sp 2, mysql 5.0.18, ruby 1.8.4, rails 1.1.6, gem  
0.9.0, webrick 1.3.1, voltage 220V, frequnce 50Hz (i don’t know yet how  
danish web frameworks work and what matters for them).

Can anyone tell me what’s ‘rotten’ in rubyonrails?

I search forums for a solution, but i didn’t find anything.  
This is the web development that doesn’t hurt?? I simple tutorial using  
their latest version for rubyonrails and most used OS and OSS database,  
can not be done? ‘web framework optimized for…’ ?? WTF, in Denmark  
until now they where programming using rakes and hoes and now they have  
discovered the warm water?

---

<div class="post-metadata">

**Author:** ![hamlet](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/b9bd4f/32.png) [@hamlet](https://www.ruby-forum.com/u/hamlet)\
**Post date:** [September 7, 2006, 2:05am UTC](https://www.ruby-forum.com/t/there-is-something-rotten-in-the-state-of-denmark/67828/2 "2006-09-07T02:05:32Z")

</div>

I’ve never gotten a WTF error! Try upping your voltage.

Joe

---

<div class="post-metadata">

**Author:** ![hamlet](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/b9bd4f/32.png) [@hamlet](https://www.ruby-forum.com/u/hamlet)\
**Post date:** [September 7, 2006, 2:57am UTC](https://www.ruby-forum.com/t/there-is-something-rotten-in-the-state-of-denmark/67828/3 "2006-09-07T02:57:24Z")

</div>

There is something more clever than joe’s loudthinking you can do:  
install mysql gem:  
gem install mysql

After that, when you try to see a page, maybe you get this err:  
‘…could not be located in the dynamic link library libmysql.dll’ (at  
least i did)  
My solution (i don’t know if it’s the best): copy the libmysql.dll from  
[mysql install dir]/bin to [ruby install dir]/bin

Another solution would be switch to .net

hamlet wrote:

> i’ve read there’s a guy from denmark who has brought us a ‘web  
> development that doesn’t hurt’. so i say to myself: ohh…let me try  
> this ‘web framework optimized for bla bla’. So, my first tutorial:  
> [Radar – O’Reilly](http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html). But when i try  
> to see my first page ([http://127.0.0.1:3000/recipe/new](http://127.0.0.1:3000/recipe/new)), i get this WTF  
> error: ‘Mysql::Error: Lost connection to MySQL server during query: SHOW  
> FIELDS FROM recipes’.  
> My config: win xp sp 2, mysql 5.0.18, ruby 1.8.4, rails 1.1.6, gem  
> 0.9.0, webrick 1.3.1, voltage 220V, frequnce 50Hz (i don’t know yet how  
> danish web frameworks work and what matters for them).
> 
> Can anyone tell me what’s ‘rotten’ in rubyonrails?
> 
> I search forums for a solution, but i didn’t find anything.  
> This is the web development that doesn’t hurt?? I simple tutorial using  
> their latest version for rubyonrails and most used OS and OSS database,  
> can not be done? ‘web framework optimized for…’ ?? WTF, in Denmark  
> until now they where programming using rakes and hoes and now they have  
> discovered the warm water?

---

<div class="post-metadata">

**Author:** ![hamlet](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/b9bd4f/32.png) [@hamlet](https://www.ruby-forum.com/u/hamlet)\
**Post date:** [September 7, 2006, 2:59am UTC](https://www.ruby-forum.com/t/there-is-something-rotten-in-the-state-of-denmark/67828/4 "2006-09-07T02:59:28Z")

</div>

OK, all of YOUR sarcasm aside, as the error says, it lost the connection  
to your db, so umm, my best guess is that your mysql server might be  
down and might need a restart?? Or as Joe suggested, up your voltage.  
LOL

---

<div class="post-metadata">

**Author:** ![hamlet](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/b9bd4f/32.png) [@hamlet](https://www.ruby-forum.com/u/hamlet)\
**Post date:** [September 7, 2006, 3:01am UTC](https://www.ruby-forum.com/t/there-is-something-rotten-in-the-state-of-denmark/67828/5 "2006-09-07T03:01:28Z")

</div>

Check your SQL username and passwords and make sure they match what is  
in  
config/database.yml .

Also see:

```
http://www.ruby-forum.com/topic/57780

http://wiki.rubyonrails.org/rails/pages/Mysql+Connection+Problems

```

And BTW that tutorial is mega old and not without its problems. The  
screen  
casts are more useful.

```
http://rubyonrails.org/screencasts

```

Good luck. Don’t drink the wine, and dodge the rapiers if you can.

- foobario

---

<div class="post-metadata">

**Author:** ![hamlet](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/b9bd4f/32.png) [@hamlet](https://www.ruby-forum.com/u/hamlet)\
**Post date:** [September 7, 2006, 5:33am UTC](https://www.ruby-forum.com/t/there-is-something-rotten-in-the-state-of-denmark/67828/6 "2006-09-07T05:33:39Z")

</div>

Seems clear to me hamlet hoped not to get much out of the tutorial in  
the  
first place.

Hopefully you can reflect on the days you were beginning with your  
current  
framework/language and compare your experiences.  
Rails programmers wouldn’t be Rails programmers if the framework were as  
flimsy as you suggest.

Are you going to have speed bumps while you learn “The Ruby Way?” Yes.  
Will you be as productive with Rails during the honeymoon period as you  
are  
with the language you’ve been using for x years? No.

That should be obvious when you learn anything new.

---

<div class="post-metadata">

**Author:** ![hamlet](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/b9bd4f/32.png) [@hamlet](https://www.ruby-forum.com/u/hamlet)\
**Post date:** [September 7, 2006, 7:52am UTC](https://www.ruby-forum.com/t/there-is-something-rotten-in-the-state-of-denmark/67828/7 "2006-09-07T07:52:08Z")

</div>

I had this problem.

It’s not a Ruby On Rails issue.

I believe you need to install libmysql-ruby1.8.

apt-get install libmysql-ruby1.8

or the equivalent for your OS.

---

<div class="post-metadata">

**Author:** ![hamlet](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/b9bd4f/32.png) [@hamlet](https://www.ruby-forum.com/u/hamlet)\
**Post date:** [September 7, 2006, 2:44pm UTC](https://www.ruby-forum.com/t/there-is-something-rotten-in-the-state-of-denmark/67828/8 "2006-09-07T14:44:01Z")

</div>

Max M. wrote:

> You may also want to read up on netiquette. The Rails mailing list is  
> a place where a bunch of very helpful people go out of their way to  
> answer questions. Making snide comments about a framework a whole lot  
> of people feel passionately good about will not help your getting  
> meaningful answers. Just tone it down.
> 
> Max

And yet, he \>still\< gets \>solid\< answers from the people who likely want  
to throw something at him. +2 ruby-on-rails community.

c.

---

<div class="post-metadata">

**Author:** ![hamlet](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/b9bd4f/32.png) [@hamlet](https://www.ruby-forum.com/u/hamlet)\
**Post date:** [September 7, 2006, 5:17am UTC](https://www.ruby-forum.com/t/there-is-something-rotten-in-the-state-of-denmark/67828/9 "2006-09-07T05:17:38Z")

</div>

On 9/7/06, hamlet [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> danish web frameworks work and what matters for them).

Your db username or password is wrong, your MySql server is not  
started, or you haven’t created the database

This has nothing to do with Rails - I suspect you went throught the  
environment setup part of the tutorial a bit too quickly.

You may also want to read up on netiquette. The Rails mailing list is  
a place where a bunch of very helpful people go out of their way to  
answer questions. Making snide comments about a framework a whole lot  
of people feel passionately good about will not help your getting  
meaningful answers. Just tone it down.

Max
