Newer
Older
Dries Buytaert
committed
// $Id$
Dries Buytaert
committed
CREATE THE PostgreSQL DATABASE
Dries Buytaert
committed
------------------------------
Dries Buytaert
committed
Note that the database must be created with UTF-8 (Unicode) encoding.
Dries Buytaert
committed
1. CREATE DATABASE USER
Dries Buytaert
committed
Dries Buytaert
committed
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:
Dries Buytaert
committed
createuser --pwprompt --encrypted --no-adduser --no-createdb username
Dries Buytaert
committed
Dries Buytaert
committed
If everything works correctly, you'll see a "CREATE USER" notice.
2. CREATE THE DRUPAL DATABASE
Dries Buytaert
committed
Dries Buytaert
committed
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":
Dries Buytaert
committed
createdb --encoding=UNICODE --owner=username databasename
Dries Buytaert
committed
Dries Buytaert
committed
If everything works correctly, you'll see a "CREATE DATABASE" notice.