Forgot PostgreSQL Password? Reset PostgreSQL Password in Windows 11 & 10 | Easy Step-by-Step Guide

Опубликовано: 10 Июль 2026
на канале: spatialTour
33
5

Forgot your PostgreSQL password? Don't worry!

In this step-by-step tutorial, you'll learn how to reset the PostgreSQL password on Windows 11 and Windows 10 by modifying the pg_hba.conf configuration file and using the ALTER USER command.

This method is safe, beginner-friendly, and works for PostgreSQL users who can no longer log in to their database.

📌 In this video you'll learn:
✅ Locate the pg_hba.conf file
✅ Change authentication from scram-sha-256 to trust
✅ Restart the PostgreSQL service
✅ Reset the postgres user password
✅ Restore secure authentication settings

This tutorial is perfect for:
• PostgreSQL Beginners
• Database Administrators
• PostGIS Users
• GIS Professionals
• Students learning SQL and PostgreSQL

💡 SQL Command Used:

ALTER USER postgres WITH PASSWORD 'NewPassword123';

📚 Installation Playlist:
PostgreSQL & PostGIS Installation Series

👍 If this tutorial helped you, don't forget to Like, Subscribe, and Share!

Welcome to SpatialTour – Learn GIS, PostgreSQL, PostGIS, GeoServer, QGIS, Google Earth Engine, Remote Sensing, Python, and Web GIS from beginner to advanced.

#PostgreSQL #PostGIS #Database #SQL #SpatialTour