MySql Database Configration with Ruby On Rails.

20 views
Skip to first unread message

bestwebt...@gmail.com

unread,
Dec 18, 2015, 3:15:03 AM12/18/15
to Ruby on Rails: Talk
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.




Thanks

Best Webtech

Colin Law

unread,
Dec 18, 2015, 4:56:57 AM12/18/15
to Ruby on Rails: Talk
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

Bayram Kuliyev

unread,
Dec 18, 2015, 5:22:46 AM12/18/15
to rubyonra...@googlegroups.com


--
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-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@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.

Reply all
Reply to author
Forward
0 new messages