Mic92 created page: home
This commit is contained in:
parent
ff2865725f
commit
5b19b5cc88
@ -2,12 +2,26 @@
|
|||||||
|
|
||||||
### postgres
|
### postgres
|
||||||
|
|
||||||
|
- Host: postgres
|
||||||
|
|
||||||
```bash
|
```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
|
||||||
|
```
|
||||||
|
|
||||||
### mysql
|
### mysql
|
||||||
|
|
||||||
|
- Host: mysql
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ create-mysql-user-and-database foo # create database and user `foo`
|
$ create-mysql-user-and-database foo # create database and user `foo`
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user