Ruby on Rails Wednesday, September 3, 2014



The "2" or "3" after the gem refers to the version of the mysql rails adapter (the gem), not the version of MySQL

What does your Gemfile actually say ? 

also it might be that you're on Windows, in which case you may have special considerations building & compiling that Gem and/or MySQL (beyond my expertise, but you might want to look for a set of instructions on the internet specifically for setting up Rails+MySQL on windows)


On Sep 3, 2014, at 9:32 AM, Mohammed Rashid <lists@ruby-forum.com> wrote:

Hi, I have created a new app using "rails new biller -d mysql" command
and when I run "rake db:create", it shows me an error saying "Could not
find gem 'mysql2 (>=0) x86-mingw32' in the gems available on this
machine."

I have also noticed that I cannot run "rails s" also as it shows the
same error. I tried correcting this with:

"bundle install"
and
"gem install mysql2"

however, gem install "mysql3" works. If so then why doesn't "rake
db:create" work. I Is there a way to make the same command for mysql3
becasue it says I have installed it.

My possible solutions:
Could this be that I deleted and downloaded a software I thought was
Workbench but it was actually mysql2?  all over again not knowing I have
downloaded the wrong one?..
I installed "mysql-installer-web-community-5.6.20.0" which may be the
problem, but I dont know how to get mysql2 back. Im trying my hardest to
diagnose the problem can somebody please help me. Everything was fine
last night now I can't even run "rails s". I know i'm very close. PLEASE
HELP !:P

-- 
Posted via http://www.ruby-forum.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-talk+unsubscribe@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/432b363396236e4c69ce5b50c202c6b8%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.


No comments:

Post a Comment