I have been trying to connect to MySQL thru rails. Initially I had rails 2.1.2 and upgraded to rails 2.2 to use RestAPI in sproutcore. Once I have upgraded my rails version to 2.2, I have been getting this error. All I did is the following: 1. rails addressbook 2. cd addressbook 3. script/generate scaffold Contact first_name:string lastname:string 4. rake db:migrate I also change the database.yml to suite MySQL. I have been getting the below error. Could someone please help me resolve this issue ERROR: srilatha-bhuvanapallis-macbook-pro:contacts Latha$ rake db:migrate(in / Users/Latha/LearnSproutCore/AddressBookWithDatabase/contacts) !!! The bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem and try again: gem install mysql. rake aborted! no such file to load -- mysql (See full trace by running task with --trace) Thanks in advance Latha --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On Tue, Dec 23, 2008 at 10:08 AM, geneeyuss <geneeyuss-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I have been getting the below error. Could someone please help me > resolve this issue> !!! The bundled mysql.rb driver has been removed from Rails 2.2. > Please install the mysql gem and try again: gem install mysql.So what happened when you followed that instruction? -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
If u are a ubuntu or debian user install mysql library via sudo apt-get install libmysql-ruby with regards, Gen http://genlinux.blogspot.com geneeyuss wrote:> I have been trying to connect to MySQL thru rails. Initially I had > rails 2.1.2 and upgraded to rails 2.2 to use RestAPI in sproutcore. > Once I have upgraded my rails version to 2.2, I have been getting this > error. All I did is the following: > > 1. rails addressbook > 2. cd addressbook > 3. script/generate scaffold Contact first_name:string lastname:string > 4. rake db:migrate > > I also change the database.yml to suite MySQL. > > I have been getting the below error. Could someone please help me > resolve this issue > > ERROR: > srilatha-bhuvanapallis-macbook-pro:contacts Latha$ rake db:migrate(in / > Users/Latha/LearnSproutCore/AddressBookWithDatabase/contacts) > !!! The bundled mysql.rb driver has been removed from Rails 2.2. > Please install the mysql gem and try again: gem install mysql. > rake aborted! > no such file to load -- mysql > > (See full trace by running task with --trace) > > > Thanks in advance > Latha-- 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 -~----------~----~----~----~------~----~------~--~---