2005-11-25 10:07:49 +00:00
|
|
|
// $Id$
|
|
|
|
|
2006-09-08 16:29:35 +00:00
|
|
|
CREATE THE PostgreSQL DATABASE
|
2005-11-25 10:07:49 +00:00
|
|
|
------------------------------
|
|
|
|
|
2006-09-08 16:29:35 +00:00
|
|
|
Note that the database must be created with UTF-8 (Unicode) encoding.
|
|
|
|
|
2005-11-25 10:07:49 +00:00
|
|
|
1. CREATE DATABASE USER
|
2005-11-25 10:11:59 +00:00
|
|
|
|
2006-09-08 16:29:35 +00:00
|
|
|
This step is only necessary if you don't already have a user setup (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:
|
2005-11-25 10:07:49 +00:00
|
|
|
|
|
|
|
createuser --pwprompt --encrypted --no-adduser --no-createdb username
|
2005-11-25 10:11:59 +00:00
|
|
|
|
2005-11-25 10:07:49 +00:00
|
|
|
If everything works correctly, you'll see a "CREATE USER" notice.
|
|
|
|
|
|
|
|
2. CREATE THE DRUPAL DATABASE
|
2005-11-25 10:11:59 +00:00
|
|
|
|
2006-09-08 16:29:35 +00:00
|
|
|
This step is only necessary if you don't already have a database setup (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":
|
2005-11-25 10:11:59 +00:00
|
|
|
|
2005-11-26 19:54:24 +00:00
|
|
|
createdb --encoding=UNICODE --owner=username databasename
|
2005-11-25 10:11:59 +00:00
|
|
|
|
2005-11-25 10:07:49 +00:00
|
|
|
If everything works correctly, you'll see a "CREATE DATABASE" notice.
|