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.


  user: root
  password: root



  username: root
  password: root

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Post Navigation