Skip to content

Commit 9e98f34

Browse files
Merge pull request #222320 from AwdotiaRomanowna/patch-15
Update how-to-create-users.md
2 parents f3ff2a5 + 6149a0c commit 9e98f34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ The server admin user account can be used to create additional users and grant t
4545
3. Edit and run the following SQL code. Replace your new user name for the placeholder value <new_user>, and replace the placeholder password with your own strong password.
4646

4747
```sql
48-
CREATE ROLE <new_user> WITH LOGIN NOSUPERUSER INHERIT CREATEDB CREATEROLE NOREPLICATION PASSWORD '<StrongPassword!>';
48+
CREATE USER <new_user> CREATEDB CREATEROLE PASSWORD '<StrongPassword!>';
4949

5050
GRANT azure_pg_admin TO <new_user>;
5151
```
@@ -64,7 +64,7 @@ The server admin user account can be used to create additional users and grant t
6464
```sql
6565
CREATE DATABASE <newdb>;
6666

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

6969
GRANT CONNECT ON DATABASE <newdb> TO <db_user>;
7070
```

0 commit comments

Comments
 (0)