456 B
456 B
Database
postgres
- Host: postgres
$ create-postgres-user-and-database foo bar # create user `foo` and give him access to database `bar`
Administration shell:
$ sudo psql -h postgres -u postgres
psql> \l # list databases
psql> \c <database> # connect to database
psql> \d # show tables
mysql
- Host: mysql
$ create-mysql-user-and-database foo # create database and user `foo`