Skip to content

Commit 8fad61b

Browse files
Merge pull request #226158 from AwdotiaRomanowna/patch-17
Update how-to-create-users.md
2 parents b6dc125 + a910eea commit 8fad61b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

articles/postgresql/flexible-server/how-to-create-users.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ms.subservice: flexible-server
1010
ms.topic: how-to
1111
---
1212

13-
# Create users in Azure Database for PostgreSQL - Flexible Server Preview
13+
# Create users in Azure Database for PostgreSQL - Flexible Server
1414

1515
[!INCLUDE [applies-to-postgresql-Flexible-server](../includes/applies-to-postgresql-Flexible-server.md)]
1616

@@ -50,7 +50,7 @@ The server admin user account can be used to create more users and grant those u
5050
1. Edit and run the following SQL code. Replace your new user name with the placeholder value <new_user>, and replace the placeholder password with your own strong password.
5151

5252
```sql
53-
CREATE ROLE <new_user> WITH LOGIN NOSUPERUSER INHERIT CREATEDB CREATEROLE NOREPLICATION PASSWORD '<StrongPassword!>';
53+
CREATE USER <new_user> CREATEDB CREATEROLE PASSWORD '<StrongPassword!>';
5454

5555
GRANT azure_pg_admin TO <new_user>;
5656
```
@@ -64,12 +64,12 @@ The server admin user account can be used to create more users and grant those u
6464

6565
1. Edit and run the following SQL code. Replace the placeholder value `<db_user>` with your intended new user name and placeholder value `<newdb>` with your own database name. Replace the placeholder password with your own strong password.
6666

67-
This sql code syntax creates a new database named testdb, for example, purposes. Then it creates a new user in the PostgreSQL service and grants connect privileges to the new database for that user.
67+
This SQL code below creates a new database, then it creates a new user in the PostgreSQL instance and grants connect privilege to the new database for that user.
6868

6969
```sql
7070
CREATE DATABASE <newdb>;
7171

72-
CREATE ROLE <db_user> WITH LOGIN NOSUPERUSER INHERIT CREATEDB NOCREATEROLE NOREPLICATION PASSWORD '<StrongPassword!>';
72+
CREATE USER <db_user> PASSWORD '<StrongPassword!>';
7373

7474
GRANT CONNECT ON DATABASE <newdb> TO <db_user>;
7575
```
@@ -80,7 +80,7 @@ The server admin user account can be used to create more users and grant those u
8080
GRANT ALL PRIVILEGES ON DATABASE <newdb> TO <db_user>;
8181
```
8282

83-
If a user creates a table "role," the table belongs to that user. If another user needs access to the table, you must grant privileges to the other user on the table level.
83+
If a user creates a table "role", the table belongs to that user. If another user needs access to the table, you must grant privileges to the other user on the table level.
8484

8585
For example:
8686

@@ -91,7 +91,7 @@ The server admin user account can be used to create more users and grant those u
9191
1. Sign in to your server, specifying the designated database, using the new username and password. This example shows the psql command line. With this command, you're prompted for the password for the user name. Replace your own server name, database name, and user name.
9292
9393
```shell
94-
psql --host=mydemoserver.postgres.database.azure.com --port=5432 --username=db_user@mydemoserver --dbname=newdb
94+
psql --host=mydemoserver.postgres.database.azure.com --port=5432 --username=db_user --dbname=newdb
9595
```
9696
9797
## Next steps

0 commit comments

Comments
 (0)