restart postgres ubuntu 1

restart postgres ubuntu

sudo service postgresql restart
# To restart the postgresql service

Here is what the above code is Doing:
1. We’re creating a new user called ‘catalog’ with CREATEDB permissions.
2. We’re creating a new database called ‘catalog’ and granting all privileges
to the ‘catalog’ user.
3. We’re running the file to create the database schema.
4. We’re inserting some initial data into the database.
5. We’re running the file to insert menu data.
6. We’re running the application!

Similar Posts