From b2839a35c53bf0ada891835dc2809f7f7f4e2bef Mon Sep 17 00:00:00 2001 From: SJost Date: Wed, 7 Mar 2018 15:39:41 +0100 Subject: [PATCH] =?UTF-8?q?PostgreSQL=20info=20zu=20Readme=20hinzugef?= =?UTF-8?q?=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/README.md b/README.md index b35ae1d3e..2fbf8207f 100644 --- a/README.md +++ b/README.md @@ -67,3 +67,24 @@ Assuming Ubuntu or similar stack:
https://docs.haskellstack.org/en/stable/README/#how-to-install ldap:
https://wiki.ubuntuusers.de/OpenLDAP_ab_Precise/ + + +*** + +# PostgreSQL + +Starten als Root: + +# systemctl start postgresql +# find / -name postgresql.conf +# cd /var/lib/pgsql/data/ +# su - postgres + + +psql -U uniworx -d uniworx -h 127.0.0.1 -w + +--Zeige Tabellen +\dt + +--Lösche Tabelle "course" und alle davon abhängigen: +DROP TABLE "course" CASCADE;