Connection to Azure postgres server fails despite valid username

When I try to connect to my postgres server in Azure from the psql client, I get the following error, although I use the correct username. How can i fix this?

psql: FATAL: Invalid username specified. Check your username and try again. Username must be in format <username@hostname>.

+4
source share
1 answer

As indicated in the error text, you must follow the format <username@hostname>when trying to connect to the postgresql server, regardless of whether you are running this from the psql client or using pgadmin. Using the <username@hostname>format instead <username>should get rid of the error.

Read the quick start documents for the Azure portal and the CLI to learn more about how to create and configure a postgres server.

+6
source

Source: https://habr.com/ru/post/1677290/


All Articles