Mic92 created page: home

This commit is contained in:
Jörg Thalheim 2014-08-18 14:30:06 +02:00
parent f620cf8da2
commit 2baebf0184
1 changed files with 14 additions and 6 deletions

View File

@ -5,16 +5,16 @@
- Host: postgres
```bash
$ create-postgres-user-and-database foo bar # create user `foo` and give him access to database `bar`
$ 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 <database> # connect to database
psql> \d # show tables
$ sudo psql -h postgres -u postgres
psql> \l # list databases
psql> \c <database> # connect to database
psql> \d # show tables
```
### mysql
@ -22,7 +22,7 @@ Administration shell:
- Host: mysql
```bash
$ create-mysql-user-and-database foo # create database and user `foo`
$ create-mysql-user-and-database foo # create database and user `foo`
```
## List snapshots
@ -52,3 +52,11 @@ Administration: https://ldap.higgsboson.tk
| Encryption | STARTTLS or TLS |
| MX-Record | mail.higgsboson.tk |
| SRV-Record | v=spf1 a:mail.higgsboson.tk ip6:2a01:4f8:210:31fd:1::10 -all |
## LXC
```
$ lxc-attach -n <name> # login
$ systemctl start lxc@<name> # start container
$ systemctl stop lxc@<name> # stop container
```