So I'm using the Cloud9 ide to collaborate on a Node.js project. We are using Postgresql for the database, and the documentation for Postgres seems to make it quite simple. I can sudo service postgresql start
without a problem but I can't sudo -u postgres psql
without it asking for my password, which I don't know because Cloud9 set up the environment for me. Any fixes or suggestions?
Instead of running sudo -u postgres psql
try running sudo sudo -u postgres psql
and you'll get right in. The documentation previously noted this but was recently changed. It will soon be reverted.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With