How to connect ruby on rails to mysql

Hi Friends,

i am new to ruby on rails, i want to connect mysql from ruby on rails,
how i connect and how to operations like create and update delete . any
one have idea please help me out

Thanks In Advance
V.Venkateswara rao

Go read a tutorial.


Dheeraj K.

On 7 February 2013 09:36, Dheeraj K. [email protected]
wrote:

Go read a tutorial.

Chapter 1: From zero to deploy | Ruby on Rails Tutorial | Learn Enough to Be Dangerous

Agreed, but do more than read it, work right through the tutorial in
order to understand the basics of rails. The tutorial is free to use
online.

Colin

Colin L. wrote in post #1095694:

On 7 February 2013 09:36, Dheeraj K. [email protected]
wrote:

Go read a tutorial.

Chapter 1: From zero to deploy | Ruby on Rails Tutorial | Learn Enough to Be Dangerous

Agreed, but do more than read it, work right through the tutorial in
order to understand the basics of rails. The tutorial is free to use
online.

Colin

Thank you Colin…

For connecting mysql to your rails App follow below commands

  1. in terminal when your creating new App
    rails new -d mysql (-d for database)
  2. Open your database.yml file (Appname/config/database.yml)
    give password of your mysql at DEVELOPMENT and Testing
  3. rake db:create
    4.rake db:migrate

On Thu, Feb 7, 2013 at 4:37 PM, Venkat V.
[email protected]wrote:


You received this message because you are subscribed to the Google G.
“Ruby on Rails: Talk” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.