MySQL Forums
Forum List  »  Ruby

Re: MySQL and Ruby on Windows
Posted by: Z. K.
Date: November 30, 2009 01:08AM

I figured it out after many frustrating hours and a lot of time spent searching the Internet.

To install the gem I used this command

gem install --no-rdoc --no-ri mysql -- --with-mysql-dir="C:\Program Files\MySQL\MySQL Server 5.1\my.ini"

Then I getting a no access allowed for root with password = yes. So, I removed the password on root and now it seems to work though I have not yet tried to write to the database, but if I create a controller like

script/generate controller Hello index

and access localhost:3000/hello, the default page comes up as it should which it would not do when the mysql gem was not installed properly. Now if only I could figure out how to get rails to access my MySQL database when the root user has a password, I would be doing great. At least for now, I have it working somewhat.

Z.K.

Options: ReplyQuote


Subject
Written By
Posted
November 28, 2009 06:04AM
November 29, 2009 02:31AM
Re: MySQL and Ruby on Windows
November 30, 2009 01:08AM
December 07, 2009 03:59PM
March 05, 2010 02:09AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.