Please look here: http://edgeguides.rubyonrails.org/configuring.html#configuring-a-database
On Fri, Dec 18, 2015 at 2:55 PM, Colin Law <clan...@gmail.com> wrote: > On 18 December 2015 at 05:26, <bestwebtechjai...@gmail.com> wrote: > > Hello Everyone > > > > > > MySql Database Configuration with Ruby On Rails. > > > > > > Tell Me the correct way of using MySql Database with ROR. > > > > Currently i am using Linux Ubuntu 14.04 & my Ruby Version : ruby > 2.1.4, > > Rails 4.2.5 & mysql : mysql Ver 14.14 Distrib 5.5.46. > > Do you already know how to develop using ROR? If not then start by > working right through a good tutorial such as railstutorial.org (which > is free to use online) which will show you the basics of Rails. > > Once you have done that (or if you already know how to develop with > rails) then in Gemfile remove any database specific gems you have and > replace with > gem 'mysql2' > and in database.yml put > adapter: mysql2 > socket: /var/run/mysqld/mysqld.sock > > Colin > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rubyonrails-talk+unsubscr...@googlegroups.com. > To post to this group, send email to rubyonrails-talk@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLuZOtBVEuTOp%2B9K2x%3DrUqsju82Lq-v%2BH-Xe8hSx878P%3Dg%40mail.gmail.com > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAG_K1SawWuMK%3DausSwhW6e-YHn63zp%3DRaQfkSWegEYPq%3DiC%2Bdg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.