Question

Comment arriver a se connecter a postgre@server?

Posted January 23, 2021 160 views
UbuntuPostgreSQLQuickstartDatabasesUbuntu 20.04

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

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.

×
Submit an Answer
1 answer

Hi there,

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

  • sudo -i -u postgres

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

  • psql

Hope that this helps!
Regards,
Bobby