xxxxxxxxxx
$ sudo -u postgres psql
\password
Enter password:
xxxxxxxxxx
//CHECK POSTGRES IS WORKING OR NOT
sudo systemctl status postgresql
//THIS WILL ACCEPT PORTS
sudo pg_isready
sudo su postgres
//NAVIGATE TO SQL TERMINAL / BASH
psql
//CREATE A NEW USER WITH PASSWORD
CREATE USER yourname WITH PASSWORD 'yourpassword';
xxxxxxxxxx
sudo su postgres
psql -U postgres
\password
Enter new password:
Enter it again:
postgres user is : postgres
xxxxxxxxxx
connection to server at "localhost" (127.0.0.1), port 5432 failed: FATAL: password authentication failed for user "postgres"