Ruby on Rails Sunday, October 3, 2010

A shot in the dark, is the socket location correct? Try entering into
mysql via command link using that socket.

-sunny
http://ezror.com

On Oct 2, 4:23 am, Daniel Amsterdam <daniel...@gmail.com> wrote:
> Hello,
>
> I'm new to ror and i really like it so far! for a new application i
> would like to setup a ror application connecting to mysql but i can't
> figure it out how. rails works fine with sqllite out the box but i
> need it working with mysql. these are my versions:
>
> -OSX snow leopard
> -ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]
> -Rails 3.0.0
> $ /usr/local/mysql/bin/mysql : Server version: 5.1.51 MySQL Community
> Server (GPL)
> $ gem list: mysql (2.8.1)
>
> this is my development setting in config/database.yml
>
> development:
>     adapter: mysql
>     encoding: utf8
>     database: blog
>     pool: 5
>     username: root
>     password:
>     socket: /tmp/mysql.sock
>
> Now when i test rake db:migrate i get the folowing error:
>
> daniels-macbook:blog daniel$ rails generate scaffold post name:string
> message:text
>      // files created ....
> daniels-macbook:blog daniel$ rake db:migrate
> (in /sites/blog)
> rake aborted!
> !!! Missing the mysql gem. Add it to your Gemfile: gem 'mysql',
> '2.8.1'
>
> (See full trace by running task with --trace)
> ---------
>
> The mysql 2.8.1 is already in my gem list and i have the gem installed
> with the command: sudo gem install mysql -- --with-mysql-config=/usr/
> local/mysql/bin/mysql_config
>
> Does anyone know what i'm doing wrong? Thank you very much!!
>
> Greetings, Daniel

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment