From 5b19b5cc88a2c3e17a62ffc806075cdc907affca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Mon, 18 Aug 2014 13:34:22 +0200 Subject: [PATCH] Mic92 created page: home --- home.markdown | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/home.markdown b/home.markdown index 2194b39..a4af980 100644 --- a/home.markdown +++ b/home.markdown @@ -2,12 +2,26 @@ ### postgres +- Host: postgres + ```bash $ create-postgres-user-and-database foo bar # create user `foo` and give him access to database `bar` ``` +Administration shell: + +```bash + $ sudo psql -h postgres -u postgres + psql> \l # list databases + psql> \c # connect to database + psql> \d # show tables +``` + ### mysql +- Host: mysql + ```bash $ create-mysql-user-and-database foo # create database and user `foo` -``` \ No newline at end of file +``` +