hello everyone, i am new to ROR. i am just trying to run a simple application which will show some data from database, i have done it in my local machine. But when i tried to do the same thing in my "Dreamhost" shared hosting. I got an error. i used the Rake tool and successfully migrated a model (using SSH client tool). The table was successfully created hosting db server, so i thought there will be no problem in getting the database server. But when i call the page this error comes: Can''t connect to local MySQL server through socket ''/var/run/mysqld/ mysqld.sock'' (2) i checked that database.yml file is porperly configured, and i think if it wasn''t configured properly then how the table get created.. so what can be the problem , can anyone help? thanks in advance. --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
wierd - have you checked that mysql is running? i agree that if the table was created then surely the sock you specified must be correct? I have seen that error when mysql isn''t running. Im not really very clued up on this but that''s my 2cents worth :) ivor On 9/26/07, CodeMakeR <jalal.exe-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > hello everyone, i am new to ROR. > > i am just trying to run a simple application which will show some data > from database, i have done it in my local machine. But when i tried to > do the same thing in my "Dreamhost" shared hosting. I got an error. > > i used the Rake tool and successfully migrated a model (using SSH > client tool). The table was successfully created hosting db server, so > i thought there will be no problem in getting the database server. But > when i call the page this error comes: > > Can''t connect to local MySQL server through socket ''/var/run/mysqld/ > mysqld.sock'' (2) > > i checked that database.yml file is porperly configured, and i think > if it wasn''t configured properly then how the table get created.. > > so what can be the problem , can anyone help? > > thanks in advance. > > > > >--~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
Just checking the obvious - are you definately running in production mode? I use site5 rather than dreamhost however I have to set the following in /config/environment.rb: ENV[''RAILS_ENV''] ||= ''production'' Luke -- 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?hl=en -~----------~----~----~----~------~----~------~--~---
thanks for your reply, my problem is solved. i have done everything properly as the hosting service suggested. returning from the office i checked back the website, and it responded as it should. so may be there was some problem in the hosting. On 9/26/07, Luke Pearce <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > > Just checking the obvious - are you definately running in production > mode? > > I use site5 rather than dreamhost however I have to set the following in > /config/environment.rb: > > ENV[''RAILS_ENV''] ||= ''production'' > > Luke > -- > 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?hl=en -~----------~----~----~----~------~----~------~--~---