app/config/database.tml

production:
  adapter: mysql
  host: localhost
  database: <name of database>
  username: peter
  password: <password>
  socket: /var/run/mysql/mysql.sock

development:
  adapter: mysql
  host: localhost
  database: <name of database>
  username: peter
  password: <password>
  socket: /var/run/mysql/mysql.sock

test:
  adapter: mysql
  host: localhost
  database: <name of database>
  username: peter
  password: <password>
  socket: /var/run/mysql/mysql.sock