Techtrekking
TutorialsNext.js application on Ubuntu with PostgresHow to setup PostgreSQL on Ubuntu server
Chapter 2 of 3

How to setup PostgreSQL on Ubuntu server

By Pravin

first ensure ubuntu is updated with latest packages

sudo apt update sudo apt upgrade -y

Once this is done, you are ready.

Install postgres

sudo apt install postgresql postgresql-contrib -y # check installation status sudo systemctl status postgresql # connect to psql sudo -u postgres psql # sudo systemctl status postgresql ALTER USER postgres PASSWORD 'YourSecurePassword'; # exit \q
Comments
No comments yet. Be the first to comment!
Leave a Comment
Your comment will be visible after approval.