Using WAMP's MySQL with Cygwin Ruby on Rails

Posted by Andrei on Stack Overflow See other posts from Stack Overflow or by Andrei
Published on 2010-06-16T22:22:08Z Indexed on 2010/06/16 22:22 UTC
Read the original article Hit count: 269

Filed under:
|
|
|
|

I'm trying to install a Rails app on a Cygwin Rails + WAMP MySQL setup, but rake trows an error :

Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

Of course, it's trying to connect to MySQL trought a Cygwin socket, and since there's no MySQL server running on Cygwin, it fails.

How do I get Rails to connect to WAMP's MySQL (perhaps through TCP/IP instead of a socket) ?

© Stack Overflow or respective owner

Related posts about mysql

Related posts about ruby-on-rails