Daniel Sousa


10 Experience
0 Lessons Completed
0 Questions Solved


Posted in Setup Ubuntu 17.10 Artful Aardvark Discussion

An improvement regarding PostgreSQL setup could be allowing all local connections without password.

The way to do it is edit the configuration file:

sudo gedit /etc/postgresql/POSTGRE_VERSION/main/pg_hba.conf

And change all methods to trust. Restart postgres service.

This way no password must be provided in the database.yml.
logo Created with Sketch.

Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

© 2022 GoRails, LLC. All rights reserved.