Cannot logon to mysql

I was trying to work through this tutorial last night at home using
rails 1.0.0.
http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html?page=2. 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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs