martinseanhunt-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org
2008-Sep-05 00:35 UTC
Newbie question - Using RoR with mysql on leopard
Hi, I am completely new to RoR and I''m just going through the lynda.com tutorial to try and get me started. I have everything installed and running, the only problem is that the tutorial uses mysql and as I am sure you already know, leopard uses sql lite as standard. I would ideally like to use mysql as well so I can follow the video without having to interpret what I need to change for sql lite. I have installed the mysql gem and I have mysql running but if I go to my app in the browser (the standard RoR page) and then the about your application bit, it says I am using sqlite3. Does anyone know how I can get this working? Sorry about the long post, just wanted to give as much info as possible. :) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Frederick Cheung
2008-Sep-05 08:20 UTC
Re: Newbie question - Using RoR with mysql on leopard
On Sep 5, 1:35 am, "martinseanh...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org" <martinseanh...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> Hi, I am completely new to RoR and I''m just going through the > lynda.com tutorial to try and get me started. I have everything > installed and running, the only problem is that the tutorial uses > mysql and as I am sure you already know, leopard uses sql lite as > standard. > > I would ideally like to use mysql as well so I can follow the video > without having to interpret what I need to change for sql lite. I have > installed the mysql gem and I have mysql running but if I go to my app > in the browser (the standard RoR page) and then the about your > application bit, it says I am using sqlite3. > > Does anyone know how I can get this working?You need to change your database.yml to tell it to connect to mysql. If you haven''t gone very far you might find it easier to just generate a fresh application that is already setup to use mysql with rails -d mysql> > Sorry about the long post, just wanted to give as much info as > possible. :)--~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
martinseanhunt-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org
2008-Sep-05 09:57 UTC
Re: Newbie question - Using RoR with mysql on leopard
hi thanks for that, I tried makinga new application by putting this in the terminal "rails -d mysql test_app" it created fine but when I start the server and go to http://localhost:8888/ I get a page load error... Any idea what I can do to fix this? Maybe I did something wrong at install? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Frederick Cheung
2008-Sep-05 10:13 UTC
Re: Newbie question - Using RoR with mysql on leopard
On Sep 5, 11:57 am, "martinseanh...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org" <martinseanh...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> hi thanks for that, I tried makinga new application by putting this in > the terminal "rails -d mysql test_app" it created fine but when I > start the server and go tohttp://localhost:8888/I get a page load > error... Any idea what I can do to fix this? Maybe I did something > wrong at install?Why port 8888 ? Did you start the server on that port ? If the server is dying then it should be screaming about something in it''s logs (which are echoed to the terminal if you''ve just done script/server) Fred --~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
martinseanhunt-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org
2008-Sep-05 10:17 UTC
Re: Newbie question - Using RoR with mysql on leopard
Ha, Just realised that I was using the wrong port number *hangs head in shame* I''m too used to using mamp! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---