From: raronas Date: 2010-03-14T02:25:14+09:00 Subject: Re: Error: uninitialized constant Mysql::Protocol::UNIXSocket On 5 mar, 12:49, Charles Oliver Nutter wrote: > On Wed, Feb 3, 2010 at 4:47 PM, Shahab Qadeer wrote: > > /!\ FAILSAFE /!\  Wed Feb 03 23:02:50 +0500 2010 > >  Status: 500 Internal Server Error > >  uninitialized constant Mysql::Protocol::UNIXSocket > >    C:/Program Files/NetBeans > > 6.8/ruby2/jruby-1.4.0/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:105:in > > `const_missing' > >    C:/Program Files/NetBeans > > 6.8/ruby2/jruby-1.4.0/lib/ruby/gems/1.8/gems/ruby-mysql-2.9.2/lib/mysql/protocol.rb:212:in > > `initialize' > > This looks like the ruby-mysql gem (which I assume is the pure-ruby > mysql driver) depends on UNIXSocket, which is obviously not available > on Windows. > > Perhaps you're using the default Rails configuration that tries to use > unix sockets instead of a real socket? Try changing the config to > specify a host name instead of a UNIX socket file. > > - Charlie Hello, How do I do this? MySQL works for other languages in my PC, for PHP for example, how do I confgiure this with ruby on rails? in which config file? thanks!