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: 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), 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? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
I''ve never gotten a WTF error! Try upping your voltage. Joe -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Tamim Azizadah
2006-Sep-07 00:41 UTC
Re: There is something rotten in the state of Denmark
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 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: > 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), 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? > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
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 On 9/6/06, hamlet <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> 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: > 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), 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? > > -- > Posted via http://www.ruby-forum.com/. > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
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: > 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), 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?-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
On 9/7/06, hamlet <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> 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: > 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), 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). ><snip entirely inappropriate sarcasm> 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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Derek Perrault
2006-Sep-07 03:25 UTC
Re: There is something rotten in the state of Denmark
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. On 9/6/06, Max Muermann <ruby-DC/T6mWKptNg9hUCZPvPmw@public.gmane.org> wrote:> > > On 9/7/06, hamlet <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> 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: > > 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), 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). > > > <snip entirely inappropriate sarcasm> > > 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 > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
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. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Max Muermann 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. > > MaxAnd yet, he >still< gets >solid< answers from the people who likely want to throw something at him. +2 ruby-on-rails community. c. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---