how to start psql in linux 1

how to start psql in linux

sudo service postgresql start
# To start the postgresql service

Here is what the above code is Doing:
1. We’re installing the postgresql package.
2. We’re installing the python-psycopg2 package.
3. We’re creating a new user named catalog.
4. We’re creating a new database named catalog.
5. We’re granting all privileges on the catalog database to the catalog user.
6. We’re starting the postgresql service.

Similar Posts