Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to use mysql for RoR on windows 7. for that I install mysql gem as follow.

PS D:\Apps> gem install mysql
Successfully installed mysql-2.8.1-x86-mingw32
1 gem installed
Installing ri documentation for mysql-2.8.1-x86-mingw32...
Installing RDoc documentation for mysql-2.8.1-x86-mingw32...

Now after that when i try to add mysql to gem list then i get following error:

PS D:\Apps> gem mysql
ERROR:  While executing gem ... (RuntimeError)
    Unknown command mysql

I can see that mysql gem is there in gem folder but gem is not allowing me to add it to gem file. any comments/help please.?

share|improve this question
up vote 2 down vote accepted

From what I remember, the mysql gem requires the presence of the mysql binary somewhere in the path. This is the mysql client, which the gem uses for many of its operations.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.