annotate INSTALL.pgsql.txt @ 11:589fb7c02327 6.5

Drupal 6.5
author Franck Deroche <webmaster@defr.org>
date Tue, 23 Dec 2008 14:32:19 +0100
parents c1f4ac30525a
children
rev   line source
webmaster@1 1 // $Id: INSTALL.pgsql.txt,v 1.7 2007/11/26 16:36:42 dries Exp $
webmaster@1 2
webmaster@1 3 CREATE THE PostgreSQL DATABASE
webmaster@1 4 ------------------------------
webmaster@1 5
webmaster@1 6 Note that the database must be created with UTF-8 (Unicode) encoding.
webmaster@1 7
webmaster@1 8 1. CREATE DATABASE USER
webmaster@1 9
webmaster@1 10 This step is only necessary if you don't already have a user set up (e.g.
webmaster@1 11 by your host) or you want to create new user for use with Drupal only. The
webmaster@1 12 following command creates a new user named "username" and asks for a
webmaster@1 13 password for that user:
webmaster@1 14
webmaster@1 15 createuser --pwprompt --encrypted --no-adduser --no-createdb username
webmaster@1 16
webmaster@1 17 If everything works correctly, you'll see a "CREATE USER" notice.
webmaster@1 18
webmaster@1 19 2. CREATE THE DRUPAL DATABASE
webmaster@1 20
webmaster@1 21 This step is only necessary if you don't already have a database set up (e.g.
webmaster@1 22 by your host) or you want to create new database for use with Drupal only.
webmaster@1 23 The following command creates a new database named "databasename", which is
webmaster@1 24 owned by previously created "username":
webmaster@1 25
webmaster@1 26 createdb --encoding=UNICODE --owner=username databasename
webmaster@1 27
webmaster@1 28 If everything works correctly, you'll see a "CREATE DATABASE" notice.