-> To create the databse go to installation directory of postgres and create the database as follows.
cmd:/usr/local/pgsql/bin/createdb test1 -p 5432
-> To conncet to the database use the cmd as below.
cmd:/usr/local/pgsql/bin/psql test1 -p 5432
-> Now we can able to perform all DDL,DML,DQL,DCL on our database.
Create and connect to the Postgresql Database through cmd
Related Posts
Vi editor in Linux
Its a visual editor by default installed in every linux system. The next version of vi is vim. The vi editor tool is an interactive tool as it displays changes…
Monitoring in Postgresql
In normal PostgreSQL operation, tuples that are deleted or obsoleted by an update are not physically removed from their table. They remain present until a VACUUM is done. Therefore it’s necessary to do VACUUM periodically, especially…