Skip to content
/ psql-connect Public template

Connect PostgreSQL Database using psycopg2.

License

Notifications You must be signed in to change notification settings

unknownkz/psql-connect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PSQL Connect

( PostgreSQL Checker )

This is specially made to check your database whether it is connected or not. Using psycopg2 #Python.

How to use

# Clone this repository
- git clone https://github.com/unknownkz/psql-connect

# Change directory
- cd psql-connect

# Install requirements
- pip3 install -qq -r dev-req.txt

# GNU nano text editor
- nano database.ini   # see example and save file.

# Execute
- python3 connected.py

Example database.ini

  • Following shows the content:
[postgresql]
host=localhost
database=yourdatabase
user=postgres
password=YourP4ssword$

License