Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
304
Merge Requests
304
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
b4978897
Commit
b4978897
authored
Nov 26, 2005
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Patch
#25792
by Cvbge: improved installation instructions.
parent
90535c33
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
24 deletions
+10
-24
INSTALL.pgsql.txt
INSTALL.pgsql.txt
+2
-16
sites/default/settings.php
sites/default/settings.php
+8
-8
No files found.
INSTALL.pgsql.txt
View file @
b4978897
...
...
@@ -6,7 +6,6 @@ CONTENTS OF THIS FILE
* Introduction
* Installation and configuration:
- Database and user creation
- PL/pgSQL procedural language installation
- Drupal schema loading
INTRODUCTION
...
...
@@ -39,24 +38,11 @@ INSTALLATION AND CONFIGURATION
use with Drupal only. The following command creates a new database
named "databasename", which is owned by previously created "username":
createdb --encoding=
SQL_ASCII
--owner=username databasename
createdb --encoding=
UNICODE
--owner=username databasename
If everything works correctly, you'll see a "CREATE DATABASE" notice.
3. INSTALL THE PL/pgSQL LANGUAGE
You must also install the PL/pgSQL language if it does not exist:
createlang plpgsql databasename
If everything works correctly, you won't see any messages. It is
possible that the PL/pgSQL language was already installed; if so,
running the above command would give you the following error:
createlang: language "plpgsql" is already
installed in database "databasename"
4. LOAD THE DRUPAL DATABASE SCHEMA
3. LOAD THE DRUPAL DATABASE SCHEMA
Once the database has been created, load the required tables into it:
...
...
sites/default/settings.php
View file @
b4978897
...
...
@@ -79,23 +79,23 @@
* );
*
* Database URL format:
* $db_url = 'mysql://username:password@localhost/database';
* $db_url = 'mysqli://username:password@localhost/database';
* $db_url = 'pgsql://username:password@localhost/database';
* $db_url = 'mysql://username:password@localhost/database
name
';
* $db_url = 'mysqli://username:password@localhost/database
name
';
* $db_url = 'pgsql://username:password@localhost/database
name
';
*/
$db_url
=
'mysql://username:password@localhost/database'
;
$db_url
=
'mysql://username:password@localhost/database
name
'
;
$db_prefix
=
''
;
/**
* Base URL:
*
* The URL of your website's main page. It is not allowed to have
* a trailing slash; Drupal will add it for you.
*
* Examples:
* a trailing slash; Drupal will add it for you.
*
* Examples:
* $base_url = 'http://localhost';
* $base_url = 'http://example.com/drupal';
*
*
* By default, Drupal tries to set the $base_url for you using
* the code below.
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment