If I want to use MySQL instead of sqlite3 when creating a Rails application, apart from creating the application with the -d mysql and configuring the config/database.yml file is there anything else I did to do/download? Thanks -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
You need to install the mysql gem too. sudo gem install mysql On 6 Dec 2009, at 14:58, shusseina wrote:> If I want to use MySQL instead of sqlite3 when creating a Rails > application, apart from creating the application with the -d mysql and > configuring the config/database.yml file is there anything else I did > to do/download? > > Thanks > > -- > > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
2009/12/6 shusseina <s.anderson.au-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:> If I want to use MySQL instead of sqlite3 when creating a Rails > application, apart from creating the application with the -d mysql and > configuring the config/database.yml file is there anything else I did > to do/download?You need the mysql gem and you need a mysql server. How you get the server depends on what OS you are using. Colin -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Sun, 2009-12-06 at 06:58 -0800, shusseina wrote:> If I want to use MySQL instead of sqlite3 when creating a Rails > application, apart from creating the application with the -d mysql and > configuring the config/database.yml file is there anything else I did > to do/download?Assuming you''ve installed MySQL, no. That''s all it takes. Best regards, Bill -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
2009/12/6 shusseina <s.anderson.au-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:> On Dec 7, 2:21 am, Colin Law <clan...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote: >> You need the mysql gem and you need a mysql server. How you get the >> server depends on what OS you are using. >> > > MySQL is installed (...and running).Is something not working then? What problem do you have? Look in development.log for more information if you are not getting a useful error. Colin -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Not sure what is happening...my two replies from last night have failed to turn up?! gem list mysql returned nothing so I installed the MySQL driver based on the instructions in config/database.yml, using the following command: sudo env ARCHFLAGS="-arch i386" gem install mysql -- --with-mysql- config=/usr/local/mysql/bin/mysql_config gem list mysql now returns mysql (2.8.1) However, now when I check the skeleton application by visiting http://127.0.0.1:3000/ and checking on the "About your application''s environment" I get a "NameError in Rails/infoController#properties" message, with additional info "uninitialized constant MysqlCompat::MysqlRes". Any ideas? -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.