Comment arriver a se connecter a postgre@server?

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

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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