Skip navigation links

MySQL Forums :: Ruby :: MySQL and Ruby on Windows


Advanced Search

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
MySQL and Ruby on Windows Z. K. 11/28/2009 06:04AM
Re: MySQL and Ruby on Windows Z. K. 11/29/2009 02:31AM
Re: MySQL and Ruby on Windows Z. K. 11/30/2009 01:08AM
Re: MySQL and Ruby on Windows Z. K. 12/07/2009 03:59PM
Re: MySQL and Ruby on Windows poai suganuma 03/04/2010 12:07PM
Re: MySQL and Ruby on Windows Z. K. 03/05/2010 02:09AM
Re: MySQL and Ruby on Windows mike montagne 03/21/2010 08:57AM


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.