rake aborted! No such file or directory - /tmp/mysql.sock

Posted by Ryan Baxter Sat, 06 Oct 2007 20:40:00 GMT

If you’re running into the above error message when trying to perform a Rails migration on Debian or Ubuntu then you might try adding the following line to your database.yml file:

socket: /var/run/mysqld/mysqld.sock

My database.yml file looks sorta like this:

development:
  database: crunchlife_development
  adapter: mysql
  host: localhost
  username: mysql_user
  password: @!#?@!
  socket: /var/run/mysqld/mysqld.sock 

test:
  database: crunchlife_test
  adapter: mysql
  host: mysql.ryanbaxter.net
  username: mysql_user
  password: @!#?@!
  socket: /var/run/mysqld/mysqld.sock

production:
  database: crunchlife_production
  adapter: mysql
  host: mysql.ryanbaxter.net
  username: mysql_user
  password: @!#?@!

Good luck and happy migrations!

Version Control Explained

Posted by Ryan Baxter Sat, 06 Oct 2007 18:44:00 GMT

Kalid, from BetterExplained.com, has posted an excellent explanation of the hows and whys behind version control. The article takes an agnostic approach to versioning, but its examples will be more beneficial if Subversion is used. Kalid’s explanation also contains the definitions of words commonly used in the versioning nomenclature. I like this. You may read Kalid’s article and think, “Yeah, tell me something I don’t already know.”, but it is written in terms that your PHB (Pointy-Haired Boss) might understand. Spread the good word.

@!#?@!

Posted by Ryan Baxter Sat, 06 Oct 2007 18:32:00 GMT

I’ve been layed up in the hospital looking sorta like Q*bert for a couple of days. More to follow.

Older posts: 1 2