Difference between revisions of "PostgreSQL: CREATE USER"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Line 1: Line 1:
 +
<code>[[create user]]</code>, creates a new user in PostgreSQL
 +
* Official documentation: https://www.postgresql.org/docs/13/sql-createuser.html
  
* https://www.postgresql.org/docs/13/sql-createuser.html
+
== Examples ==
 
 
 
* <code>create user <username></code>
 
* <code>create user <username></code>
  

Revision as of 06:38, 9 September 2021

create user, creates a new user in PostgreSQL

Examples

  • create user <username>
create user your_username;

Output:
CREATE ROLE
CREATE USER your_username WITH ENCRYPTED PASSWORD 'your_pass';

Output:
CREATE ROLE


  • List users: \du

Related terms

See also

Advertising: