You are here

INSTALL.pgsql.txt in Drupal 4

Same filename and directory in other branches
  1. 5 INSTALL.pgsql.txt
  2. 6 INSTALL.pgsql.txt
  3. 7 INSTALL.pgsql.txt
CONTENTS OF THIS FILE
---------------------

 * Introduction
 * Installation and configuration:
    - Database and user creation
    - Drupal schema loading

INTRODUCTION
------------

This file describes how to create a PostgreSQL database for Drupal.

If you control your databases through a web-based control panel,
check its documentation, as the following instructions are for the
command line only.

INSTALLATION AND CONFIGURATION
------------------------------

1. CREATE DATABASE USER

   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:

     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
   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":

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

   If everything works correctly, you'll see a "CREATE DATABASE" notice.
   Note that the database must be created with UTF-8 (Unicode) encoding.

3. LOAD THE DRUPAL DATABASE SCHEMA

   Once the database has been created, load the required tables into it:

     psql -q -f database/database.pgsql databasename username

   If everything works correctly, you won't see any messages.

File

INSTALL.pgsql.txt
View source
  1. CONTENTS OF THIS FILE
  2. ---------------------
  3. * Introduction
  4. * Installation and configuration:
  5. - Database and user creation
  6. - Drupal schema loading
  7. INTRODUCTION
  8. ------------
  9. This file describes how to create a PostgreSQL database for Drupal.
  10. If you control your databases through a web-based control panel,
  11. check its documentation, as the following instructions are for the
  12. command line only.
  13. INSTALLATION AND CONFIGURATION
  14. ------------------------------
  15. 1. CREATE DATABASE USER
  16. This step is only necessary if you don't already have a user setup
  17. (e.g. by your host) or you want to create new user for use with Drupal
  18. only. The following command creates a new user named "username" and
  19. asks for a password for that user:
  20. createuser --pwprompt --encrypted --no-adduser --no-createdb username
  21. If everything works correctly, you'll see a "CREATE USER" notice.
  22. 2. CREATE THE DRUPAL DATABASE
  23. This step is only necessary if you don't already have a database
  24. setup (e.g. by your host) or you want to create new database for
  25. use with Drupal only. The following command creates a new database
  26. named "databasename", which is owned by previously created "username":
  27. createdb --encoding=UNICODE --owner=username databasename
  28. If everything works correctly, you'll see a "CREATE DATABASE" notice.
  29. Note that the database must be created with UTF-8 (Unicode) encoding.
  30. 3. LOAD THE DRUPAL DATABASE SCHEMA
  31. Once the database has been created, load the required tables into it:
  32. psql -q -f database/database.pgsql databasename username
  33. If everything works correctly, you won't see any messages.