Hi,

I had similar issue. It turned out there were double quotes around MySQL 
path in the %PATH% variable. While windows could recognize the path, rails 
couldn't. Removing the quotes enables rials (and windows) to see the path.
Error case: PATH = ....;"C:\Program Files\MySQL\MySQL Server 5.5\bin";....
Good case: PATH = ....;C:\Program Files\MySQL\MySQL Server 5.5\bin;....



On Friday, May 1, 2015 at 1:27:16 PM UTC+3, Ruby-Forum.com User wrote:
>
> hi, 
>
> I am trying to use mysql instead of sqlite in RoR.(using Aptana Studio) 
> 1) I added this line to the gem file 
> gem 'mysql2' 
> 2)ran bundle install 
> 3)made changes to the database.yml file 
> default: &default 
>   adapter: mysql2 
>   pool: 5 
>   timeout: 5000 
>   encoding: utf8 
>   username: root 
>   password: ****** 
>   host: 127.0.0.1 
>   port: 3306 
>
> development: 
>   <<: *default 
>   database: rails_development 
> (has test and production also) 
>
>
> 5) I type rails dbconsole / rails db on the terminal and get this error: 
> Couldn't find database client: mysql, mysql5, mysql.exe, mysql5.exe. 
> Check your $PATH and try again. 
>
> 6) I added C:\Program Files\MySQL\MySQL Server 5.5\bin to the path 
>
> The error is still there. 
> What to do ? 
>
> -- 
> 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+unsubscr...@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/a751a55f-82e9-41f3-b212-ca6d3b1d9c3e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to