Difference between revisions of "Create database (PostgreSQL)"

From wikieduonline
Jump to navigation Jump to search
Line 22: Line 22:
 
Output:
 
Output:
 
   CREATE DATABASE
 
   CREATE DATABASE
 +
or
 +
ERROR:  role "confluenceuser" does not exist
  
  

Revision as of 08:07, 7 February 2021


PostgreSQL

CREATE DATABASE "scratch"
 WITH OWNER "postgres"
 ENCODING 'UTF8'
 LC_COLLATE = 'en_US.UTF-8'
 LC_CTYPE = 'en_US.UTF-8';
CREATE DATABASE "scratch"
 WITH OWNER "postgres"
 ENCODING 'UTF8';

https://confluence.atlassian.com/doc/database-setup-for-postgresql-173244522.html

CREATE DATABASE "confluence"
 WITH OWNER "confluenceuser"
 ENCODING 'UTF8'
 LC_COLLATE = 'en_US.UTF-8'
 LC_CTYPE = 'en_US.UTF-8';

Output:

 CREATE DATABASE
or
ERROR:  role "confluenceuser" does not exist


Related terms

See also

Advertising: