Report this

What is the reason for this report?

Comment arriver a se connecter a postgre@server?

Posted on January 23, 2021

salut, j’ai vraiment besoin d’aide. J’utilise Ubuntu server 20.04 et j’aimerais arriver a basculer a Postgre@server mais comment y arriver? Je me connecte a quel serveur? je comprend vraiment pas le truc! Merci d’éclairer ma lanterne



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi there,

In order to switch to the Postgres account you can use the following command:

  1. sudo -i -u postgres

After that you can access a Postgres prompt immediately by typing:

  1. psql

Hope that this helps! Regards, Bobby

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.