Ankit Agrawal
Ankit Agrawal

Reputation: 6124

use mysql in ror insted of sqlite3?

I want to use MySQL in ROR. I add gem in my Gem file.

gem mysql2

and then I run a command

gem install mysql2

It gives me following error

"could not find a valid gem '0.3.13' <> =0> in any repository"

Please anybody tell me how can i use MySQL for ROR application

Thanks

Upvotes: 2

Views: 57

Answers (1)

Armand
Armand

Reputation: 24393

I think your syntax in your Gemfile is missing quote marks:

gem 'mysql'

and then your commandline call to install it should instead be:

bundle install

Upvotes: 1

Related Questions