I want to create a new user in my database PostreSQL database hosted on Azure.
So, following the documentation from Microsoft for pgAdmin, I went to PGAdmin and ran the following command:
CREATE ROLE rikkiWITH LOGIN NOSUPERUSER INHERIT CREATEDB CREATEROLE NOREPLICATION PASSWORD 'Fete321@';
GRANT azure_pg_admin TO rikki;
FLUSH PRIVILEGES;
It worked well. Yet, when trying to create a new server with this new login I had some issues
- I disabled SSL connection, so I don't have this error anymore
- For the password error, I just copied and paste the password I just created but it gives back this error.
So can I create new users that would be able to connect remotely to my PostgreSQL database?
I tried to connect myself through command line and got
C:\Program Files\PostgreSQL\12\bin>psql --host=######.postgres.database.azure.com --port=5432 --username=rikki@######--dbname=capi
Password for user rikki@######:
psql: error: could not connect to server: FATAL: password authentication failed for user "rikki"
FATAL: password authentication failed for user "rikki"
