“Conecte -se ao PostgreSQL” Respostas de código

Conecte -se ao banco de dados PostGresql/PG

#psql -h <host> -p <port> -d <db> -U <user>
psql -h localhost -p 5432 -d <db> -U <user>
Lino Ngando

PostgreSQL Connect ao banco de dados

psql -d geo -h 192.168.1.12 -p 5432 -U supervisor

// geo is a database and supervisor is a user
// Once on postgres you can change the database by typing

\c postgres
Fantastic Ferret

Conecte -se ao PostgreSQL

bash-4.2$ psql -h <hostname or ip address> -p <port number of remote machine> -d <database name which you want to connect> -U <username of the database server>
Lino Ngando

PostgreSQL Connect

import sqlalchemy

engine = sqlalchemy.create_engine('postgresql://username:password@localhost/mydatabase')
Scary Salamander

Respostas semelhantes a “Conecte -se ao PostgreSQL”

Perguntas semelhantes a “Conecte -se ao PostgreSQL”

Mais respostas relacionadas para “Conecte -se ao PostgreSQL” em Sql

Procure respostas de código populares por idioma

Procurar outros idiomas de código