Hello, I am trying to install rails and ruby with latest version. Every thing is ok, but mysql is not not working. I followed all the google links. the whole day is failed. any idea.. When I try to use dbconsole, I am getting following error. Couldn''t find database client: mysql, mysql5. Check your $PATH and try again. I checked in gems directory "mysql-2.8.1-x86-mswin32". I have downloaded dll file and placed in ruby/bin folder. "libmySQL.dll" I am using windows vista. Any help?? Regards Selva -- 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 post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
In your Gemfile place: gem ''mysql'' In your database.yml file make sure you''ve changed mysql2 to mysql. === Make sure that you are using the correct version of mysql and the correct dll based on 32 bit or 64 bit. Currently, 64 bit has numerous issues and you should just install the 32 bit version of mysql and use the 32 bit version of dll. Place libmySQL.dll in the ruby\bin directory and make sure the bin directory is listed in your windows path. Run bundle install. === Make sure your mysql path is set appropriately in windows environment. If installing the 32-bit version, it should automatically setup the correct path for you. However, if you manually configured everything you may be missing the correct path to your installation. PATH should include: C:\Program Files\MySQL\MySQL Server 5.1\bin; Go to irb and type require ''mysql'' => true -- 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 post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Do you have Mysql installed? Not the gem, or the dll, but mysql.exe? If you have it installed, check your environment PATH. In cmd, try `mysql`. If it gives you `mysql is not recognized...`, then you need to install it. On Jan 30, 6:18 am, Selvaraj Subbaian <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Hello, > > I am trying to install rails and ruby with latest version. Every thing > is ok, but mysql is not not working. I followed all the google links. > the whole day is failed. any idea.. > > When I try to use dbconsole, I am getting following error. > > Couldn''t find database client: mysql, mysql5. Check your $PATH and try > again. > > I checked in gems directory "mysql-2.8.1-x86-mswin32". > > I have downloaded dll file and placed in ruby/bin folder. "libmySQL.dll" > > I am using windows vista. > > Any help?? > > Regards > Selva > > -- > Posted viahttp://www.ruby-forum.com/.-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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.
If you sees that you did not set PATH properly, add mysql directory to %PATH%. On command line, you should be able to run mysql, if you can''t, dbconsole won''t be able to run. On Sun, Jan 30, 2011 at 5:18 AM, Selvaraj Subbaian <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Hello, > > I am trying to install rails and ruby with latest version. Every thing > is ok, but mysql is not not working. I followed all the google links. > the whole day is failed. any idea.. > > When I try to use dbconsole, I am getting following error. > > Couldn''t find database client: mysql, mysql5. Check your $PATH and try > again. > > I checked in gems directory "mysql-2.8.1-x86-mswin32". > > I have downloaded dll file and placed in ruby/bin folder. "libmySQL.dll" > > I am using windows vista. > > Any help?? > > Regards > Selva > > -- > 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 post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
justinbaker wrote in post #978516:> Do you have Mysql installed? Not the gem, or the dll, but mysql.exe? > If you have it installed, check your environment PATH. > In cmd, try `mysql`. If it gives you `mysql is not recognized...`, > then you need to install it.Thanks to all, I am able to connect changing the Gemfile. Thanks Alpha Regards Selva -- 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 post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.