Mic92 created page: home

This commit is contained in:
Jörg Thalheim 2014-08-18 14:39:40 +02:00
parent a609f91303
commit e9aaf49c25

View File

@ -11,12 +11,15 @@ $ create-postgres-user-and-database foo bar # create user `foo` and give him acc
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
$ sudo pg_dump -h postgres -U postgres <dbname> > dump.sql
$ sudo psql -h postgres -U postgres < dump.sql
```
### mysql
- Host: mysql