postgresql

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
postgresql [2024/07/14 11:58] – [Postgres.Backup.Wal-g wal-g] adminpostgresql [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("host='10.59.1.50' dbname='DB' user='perm' password='perm'") conn = psycopg2.connect("host='10.59.1.50' dbname='DB' user='perm' password='perm'")
  • postgresql.1720958285.txt.gz
  • Last modified: 2024/07/14 11:58
  • by admin