hedgehog lab Bug Tracking, Defect Tracking, and Issue Tracking software for the enterprise.

If you are interested in a painless, user friendly, and powerful Bug Tracking Solution, that helps you write better software and deliver projects on time, check out fixx.
Sarat Pediredla Sep 29

Easing MySQL pain when using Locomotive and XAMPP

If you are one of those n00bs that are looking to learn Ruby on Rails on a Mac OS X and happen to use the unfortunate combination of Locomotive and a XAMPP-based MySQL server, you will probably be frustrated with the following error,

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

The secret sauce to solve this problem is to connect to your MySQL using an IP address (to force TCP/IP) rather than the default socket-based connection initiated by using localhost.

Simply change the following line in your Rails config/database.yml from,

  host: localhost

to

  host: 127.0.0.1

posted by Sarat Pediredla on September 29, 2007 at 6:39 a.m.

Comments

Post a comment