Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
| postgresql [2024/07/14 11:58] – [Postgres.Backup.Wal-g wal-g] admin | postgresql [2024/08/04 02:07] (current) – [Postgresql] admin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Postgresql ====== | ====== Postgresql ====== | ||
| <code PYTHON> | <code PYTHON> | ||
| + | |||
| + | psql -h 192.168.1.100 -p 5432 -U u1 mydatabase | ||
| + | |||
| + | |||
| import psycopg2 | import psycopg2 | ||
| conn = psycopg2.connect(" | conn = psycopg2.connect(" | ||