Setup PostgreSQLPage edited by Ralf EichingerTable of contents
InstallationWindows:
ConfigurationPer default PostgreSQL is running on port 5432. Trusted connections for all users only from localhostTo allow trusted connections for all users only from localhost: Windows: File "D:PostgreSQLdatapg_hba.conf"
$ psql -U postgres -d template1 -c "GRANT ALL PRIVILEGES ON DATABASE pg_liferay to pg_liferay;"
GRANT
$
Restart the service ("Restart Server").
Create a new userCreate an user with password for e.g. Liferay Portal usage: Create new database user ... # IPv4 local connections: #host all all 127.0.0.1/32 md5 host all all 127.0.0.1/32 trust ... Create a new databaseCreate e.g. database pg_liferay for Liferay Portal usage: Create new database
$ psql -U postgres -d template1 -c "CREATE DATABASE pg_liferay ENCODING='UNICODE';"
CREATE DATABASE
$
Grant all permissions for a database to an userGrant all permissions for a database to an user
$ psql -U postgres -d template1 -c "GRANT ALL PRIVILEGES ON DATABASE pg_liferay to pg_liferay;"
GRANT
$
Connect to a databaseConnect to a database $ psql -d pg_liferay -U pg_liferay -W ... pg_liferay=> psql usagepsql usage
$ 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=>
Change Notification Preferences
View Online
|
View Change
|
Add Comment
|
- [CONF] Apache Wicket > Setup PostgreSQL confluence
- [CONF] Apache Wicket > Setup PostgreSQL confluence
- [CONF] Apache Wicket > Setup PostgreSQL confluence
- [CONF] Apache Wicket > Setup PostgreSQL confluence
