| Apache Wicket > Index > Setup PostgreSQL |
| Homepage: | http://www.postgresql.org/ |
| Download: | http://www.postgresql.org/download/ |
| File(s): | postgresql-8.4.1-1-windows.exe (39 MB) |
Windows:
Per default PostgreSQL is running on port 5432.
To allow trusted connections for all users only from localhost:
Windows:
$ psql -U postgres -d template1 -c "GRANT ALL PRIVILEGES ON DATABASE pg_liferay to pg_liferay;"
GRANT
$
Restart the service ("Restart Server").
Windows:
Create an user with password for e.g. Liferay Portal usage:
... # IPv4 local connections: #host all all 127.0.0.1/32 md5 host all all 127.0.0.1/32 trust ...
Create e.g. database pg_liferay for Liferay Portal usage:
$ psql -U postgres -d template1 -c "CREATE DATABASE pg_liferay ENCODING='UNICODE';"
CREATE DATABASE
$
$ psql -U postgres -d template1 -c "GRANT ALL PRIVILEGES ON DATABASE pg_liferay to pg_liferay;"
GRANT
$
$ psql -d pg_liferay -U pg_liferay -W ... pg_liferay=>
$ psql -d pg_liferay -U pg_liferay -W
Passwort für Benutzer pg_liferay:
psql (8.4.1)
Warnung: Konsolencodeseite (437) unterscheidet sich von der Windows-
Codeseite (1252). 8-Bit-Zeichen funktionieren möglicherweise nicht
richtig. Einzelheiten finden Sie auf der psql-Handbuchseite unter
»Notes for Windows users«.
Geben Sie »help« für Hilfe ein.
pg_liferay=> help
Dies ist psql, die Kommandozeilenschnittstelle für PostgreSQL.
Geben Sie ein: \copyright für Urheberrechtsinformationen
\h für Hilfe über SQL-Anweisungen
\? für Hilfe über interne Anweisungen
\g oder Semikolon, um eine Anfrage auszuführen
\q um zu beenden
pg_liferay=>