Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
database:postgresql [2016/03/24 16:02] – [Commands] tmadedatabase:postgresql [2016/03/24 16:03] – [CREATE DB] tmade
Line 125: Line 125:
   CREATE DATABASE test OWNER test   CREATE DATABASE test OWNER test
  
 +==== Roles and Grants ====
  
- +To add role "CREATEDB" to user test: 
-ALTER USER db001 CREATEDB; +   
-sudo -u postgres psql -c 'alter user db001 with createdb' postgres+  ALTER USER test CREATEDB; 
 +or 
 + sudo -u postgres psql -c 'alter user test with createdb' postgres
  
  
database/postgresql.txt · Last modified: 2018/03/31 10:06 by tmade
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki