Search
 
SCRIPT & CODE EXAMPLE
 

SQL

psql connect

psql -d gpdatabase -h master_host -p 5432 -U gpadmin
Comment

psql connect to database

psql -d postgres -h [host] -p [port] -U [user]
Comment

postgresql connect to database

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
Comment

how to connect to postgres

psql dbname postgres
Comment

connect to 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>
Comment

Postgresql connect

import sqlalchemy

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

PREVIOUS NEXT
Code Example
Sql :: postgres list all stored procedures query 
Sql :: t sql get foreign key 
Sql :: Insert from table tsql 
Sql :: sql decimal to 2 places 
Sql :: postgresql default value boolean 
Sql :: find tables with column name in sql 
Sql :: oracle auto_increment 
Sql :: mysql remove duplicates 
Sql :: sql count having 
Sql :: ubuntu reset mysql root password 
Sql :: drop multiple databases mysql 
Sql :: postgresql how to show table names 
Sql :: postgresql change default value 
Sql :: how to use lower case in mysql 
Sql :: db.Database.SqlQuery 
Sql :: postgres default user 
Sql :: duplicate table sql 
Sql :: mysql set id auto increment 
Sql :: mysql limit rows 
Sql :: SQL Server - Count number of times a specific character appears in a string 
Sql :: sql add two values together 
Sql :: sql count null 
Sql :: sql drop default 
Sql :: declare variables sql 
Sql :: mysql on duplicate key update 
Sql :: get all columns from table sql 
Sql :: clear screen command on mysql 
Sql :: alter table add multiple foreign key sql 
Sql :: create temporal table in sql 
Sql :: update auto increment value in mysql 
ADD CONTENT
Topic
Content
Source link
Name
8+3 =