Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions docs/kb/postgres/postgres-create-user-and-database.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
title: Postgres create user and database
---

I am still getting my head around Postgres, and one thing I find I forget often is the create user and database command.

## Create user

```shell
CREATE ROLE <username> LOGIN PASSWORD '<password>';
```

## Create Database

```shell
CREATE DATABASE <database> OWNER <username>;
```
2 changes: 2 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@
- docker-credential-desktop executable file not found in path: kb/podman/docker-credential-desktop-not-installed.md
- Podman mount directories on Mac: kb/podman/podman-mount-directories-mac.md
- Podman using Lima: kb/podman/podman-using-lima.md
- Postgres:
- Postgres create user and database: kb/postgres/postgres-create-user-and-database.md
- Pritunl:
- List of headers pritunl Zero sends: kb/pritunl/pritunl-forwarded-header.md
- SSH using pritunl bastion: kb/pritunl/ssh-using-pritunl-bastion.md
Expand Down Expand Up @@ -258,7 +260,7 @@
- Print secret using gcloud: cloud/gcp/print-secret-gcloud.md
- "Projects, Resources, IAM Users, Roles, Permissions, APIs, and Cloud Shell": cloud/gcp/projects-resources-iam-users-roles-permissions-apis-and-cloud-shell.md
- Re-run startup script on Google Compute Engine: cloud/gcp/re-run-startup-script-google-compute-engine.md
- Remove the lien to allow deletion: cloud/gcp/remove-the-lien-to-allow-deletion.md

Check failure on line 263 in mkdocs.yml

View workflow job for this annotation

GitHub Actions / spell_check

lien ==> line
- "Serverless VPC access for Cloudrun across Projects": cloud/gcp/serverless-vpc-access-for-cloudrun-across-projects.md
- Show BigQuery Table Schema: cloud/gcp/show-bq-table-schema.md
- SSH using IAP: cloud/gcp/ssh-iap.md
Expand Down Expand Up @@ -504,7 +506,7 @@
- navigation.tracking #Anchor links
- navigation.top # back to top of page
- navigation.indexes # Allows index.md pages
#- !ENV [nav, ""]#navigation.expand #Exapnds the navigation in the UI, disabled by default, but enabled in dev

Check failure on line 509 in mkdocs.yml

View workflow job for this annotation

GitHub Actions / spell_check

Exapnds ==> Expands
- content.code.annotate
- content.code.copy
- content.tabs.link
Expand Down