
:max_bytes(150000):strip_icc()/PreferenceScreen-5c8d30e446e0fb00014a96da.jpg)
Look for a file called pg_hba.conf in Finder and open it in the text editor. This file is located in the data directory of Postgres (the folder where you installed Postgres, for example: /PostgreSQL/14/data/). You can reset your Postgres 14 password by following the steps below: Step 1įirst, we’ll modify the pg_hba.conf file. In this guide, we'll walk you through the step-by-step process to reset your Postgres 14 password on a MacOS system.

In either case, you’re not locked out forever. If you have Postgres 14 installed on your Mac, you may find that you need to change the password at some point - either for security reasons, or because you simply forgot it.
