Ruby on Rails on MySql

A couple of small problems. For the first one, a fix from LaughingMeme. When I tried to set up my first scaffold, I got a message complaining about

No such file or directory - /tmp/mysql.sock

I needed to edit config/database.yml to change the host to 127.0.0.1 (or, equivalently, localhost.localdomain).

The second error was easier:

Access denied for user 'root'@'localhost.localdomain' (using password: NO)

I just had to specify my own username in database.yml instead of leaving the field empty. (I expected it to default to my username but for some reason it wanted to default to root.)

About this Entry

This page contains a single entry by Christian published on May 27, 2005 6:53 PM.

On the Theme of Unexpected Behaviour... was the previous entry in this blog.

I Hate Internet Explorer is the next entry in this blog.

Find recent content on the main index or look in the archive to find all content.