1 // $Id: INSTALL.pgsql.txt,v 1.6 2006/09/08 16:29:35 dries Exp $
3 CREATE THE PostgreSQL DATABASE
4 ------------------------------
6 Note that the database must be created with UTF-8 (Unicode) encoding.
8 1. CREATE DATABASE USER
10 This step is only necessary if you don't already have a user setup (e.g.
11 by your host) or you want to create new user for use with Drupal only. The
12 following command creates a new user named "username" and asks for a
13 password for that user:
15 createuser --pwprompt --encrypted --no-adduser --no-createdb username
17 If everything works correctly, you'll see a "CREATE USER" notice.
19 2. CREATE THE DRUPAL DATABASE
21 This step is only necessary if you don't already have a database setup (e.g.
22 by your host) or you want to create new database for use with Drupal only.
23 The following command creates a new database named "databasename", which is
24 owned by previously created "username":
26 createdb --encoding=UNICODE --owner=username databasename
28 If everything works correctly, you'll see a "CREATE DATABASE" notice.