Do you have an iPhone or iPod Touch? Come see our latest creation. Boom Boxes is an addictive puzzle game for the iPhone platform.

hedgehoglab

  • Check out fixx to help you write better software and deliver projects on time.

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

blog comments powered by Disqus

Date Archive

20101 posts
200930 posts
200846 posts
20079 posts

Category Archive

hedgehog contact
Download V-Card
Address
hedgehog lab,
Suite 12 & 13, The Kiln,
Hoults Yard, Walker Road,
Newcastle Upon Tyne,
Tyne & Wear,
NE6 1AB
Company Details
+44 (0) 191 265 3101
Registered in England and Wales: Company No. 05993194