Rails database user

Another project, another database connection via root user with no password. This is so sloppy.

It is so easy to create a project specific user in any database. If this was done more often, I wouldn’t be for ever changing the password for my root user. I’d also be able to swap between projects more easily. It would also be easier to maintain a secure set up.

So please, don’t use root as the database user on your next Rails project.

This entry was posted in Ruby. Bookmark the permalink.