Cannot logon to mysql

I was trying to work through this tutorial last night at home using
rails 1.0.0.
Radar – O’Reilly. I got
up to creating the cookbook database and I needed to log into mysql. On
the connection tab, I did not know what to put for server. I tried
127.0.0.1, port 3306, direct connection, username = root, no password.
Here is my database.yml file. Thanks.

Robert Zitowsky

Sorry, the later example should be:

development:
adapter: mysql
database: rails_development
username: root
password:
socket: /tmp/mysql.sock

You probably want something like socket: /tmp/mysql.sock or host:
localhost to connect to mysql running on your local machine in your
database.yml file:

development:
adapter: mysql
database: rails_development
host: localhost
username: root
password:

  • or -

development:
adapter: mysql
database: rails_development
username: root
password:
socket: /path/to/your/mysql.sock