Techtrekking

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.