Monthly Archives: February 2014

You are browsing the site archives by month.

Rails database.yml user vs username

In the database.yml file that Rails uses to define the database connection details for each environment you need to make sure it says username and not just user. If you use user than it will most likely work on your local machine, making you believe there is not issue.

BAD:

development:
  user: root
  password: root

 

GOOD:

development:
  username: root
  password: root