mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
44 lines
940 B
Markdown
44 lines
940 B
Markdown
# PostgreSQL
|
|
|
|
## Table of contents <!-- omit in toc -->
|
|
|
|
1. [TL;DR](#tldr)
|
|
1. [Further readings](#further-readings)
|
|
1. [Sources](#sources)
|
|
|
|
## TL;DR
|
|
|
|
```sh
|
|
# Installation.
|
|
brew install 'postgresql@14'
|
|
sudo dnf install 'postgresql' 'postgresql-server'
|
|
sudo zypper install 'postgresql15' 'postgresql15-server'
|
|
|
|
# Connect to servers via CLI client.
|
|
psql --host "${HOSTNAME:-localhost}" --port "${PORT:-5432}" \
|
|
"${DATABASENAME:-root}" "${USERNAME:-root}"
|
|
```
|
|
|
|
## Further readings
|
|
|
|
- [Docker image]
|
|
|
|
## Sources
|
|
|
|
All the references in the [further readings] section, plus the following:
|
|
|
|
- [Connect to a PostgreSQL database]
|
|
|
|
<!--
|
|
References
|
|
-->
|
|
|
|
<!-- Upstream -->
|
|
[docker image]: https://github.com/docker-library/docs/blob/master/postgres/README.md
|
|
|
|
<!-- In-article sections -->
|
|
[further readings]: #further-readings
|
|
|
|
<!-- Others -->
|
|
[connect to a postgresql database]: https://www.postgresqltutorial.com/connect-to-postgresql-database/
|