File: INSTALL.pgsql.txt

package info (click to toggle)
drupal6 6.6-3lenny6
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 4,868 kB
  • ctags: 372
  • sloc: pascal: 15,958; php: 4,294; sh: 1,562; perl: 126; makefile: 40
file content (28 lines) | stat: -rw-r--r-- 1,075 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// $Id: INSTALL.pgsql.txt,v 1.7 2007/11/26 16:36:42 dries Exp $

CREATE THE PostgreSQL DATABASE
------------------------------

Note that the database must be created with UTF-8 (Unicode) encoding.

1. CREATE DATABASE USER

   This step is only necessary if you don't already have a user set up (e.g.
   by your host) or you want to create new user for use with Drupal only. The
   following command creates a new user named "username" and asks for a
   password for that user:

     createuser --pwprompt --encrypted --no-adduser --no-createdb username

   If everything works correctly, you'll see a "CREATE USER" notice.

2. CREATE THE DRUPAL DATABASE

   This step is only necessary if you don't already have a database set up (e.g.
   by your host) or you want to create new database for use with Drupal only.
   The following command creates a new database named "databasename", which is
   owned by previously created "username":

     createdb --encoding=UNICODE --owner=username databasename

   If everything works correctly, you'll see a "CREATE DATABASE" notice.