<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic PostgreSQL Password forgot in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/PostgreSQL-Password-forgot/m-p/2160246#M13206</link>
    <description>&lt;P&gt;How can I recover my password for&amp;nbsp;PostgreSQL&amp;nbsp; 12.5?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Jan 2024 20:50:51 GMT</pubDate>
    <dc:creator>jfavazza</dc:creator>
    <dc:date>2024-01-10T20:50:51Z</dc:date>
    <item>
      <title>PostgreSQL Password forgot</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/PostgreSQL-Password-forgot/m-p/2160246#M13206</link>
      <description>&lt;P&gt;How can I recover my password for&amp;nbsp;PostgreSQL&amp;nbsp; 12.5?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 20:50:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/PostgreSQL-Password-forgot/m-p/2160246#M13206</guid>
      <dc:creator>jfavazza</dc:creator>
      <dc:date>2024-01-10T20:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: PostgreSQL Password forgot</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/PostgreSQL-Password-forgot/m-p/2160262#M13207</link>
      <description>&lt;P&gt;G'day, Try this , let me know if it worked for you ?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;H3&gt;Steps to Recover PostgreSQL Password&lt;/H3&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Access the PostgreSQL Configuration File:&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Locate the &lt;CODE&gt;pg_hba.conf&lt;/CODE&gt; file in your PostgreSQL installation directory. This file controls the client authentication and is usually found in the &lt;CODE&gt;data&lt;/CODE&gt; directory.&lt;/LI&gt;
&lt;LI&gt;Typical path on a Unix/Linux system: &lt;CODE&gt;/var/lib/pgsql/data/pg_hba.conf&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;Typical path on Windows: &lt;CODE&gt;C:\Program Files\PostgreSQL\16\data\pg_hba.conf&lt;/CODE&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Edit the &lt;CODE&gt;pg_hba.conf&lt;/CODE&gt; File:&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Open the &lt;CODE&gt;pg_hba.conf&lt;/CODE&gt; file in a text editor with administrative privileges.&lt;/LI&gt;
&lt;LI&gt;Find the lines that look like this: &lt;CODE&gt;host all all 127.0.0.1/32 md5&lt;/CODE&gt; or &lt;CODE&gt;host all all ::1/128 md5&lt;/CODE&gt;.&lt;/LI&gt;
&lt;LI&gt;Temporarily change the &lt;CODE&gt;md5&lt;/CODE&gt; to &lt;CODE&gt;trust&lt;/CODE&gt;. This will allow you to log in without a password.&lt;/LI&gt;
&lt;LI&gt;Example change: &lt;CODE&gt;host all all 127.0.0.1/32 trust&lt;/CODE&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Reload the PostgreSQL Service:&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;You'll need to reload the PostgreSQL service to apply these changes.&lt;/LI&gt;
&lt;LI&gt;On Unix/Linux, you can typically do this with a command like &lt;CODE&gt;sudo systemctl reload postgresql&lt;/CODE&gt;.&lt;/LI&gt;
&lt;LI&gt;On Windows, restart the PostgreSQL service through the Services management console.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Reset the Password:&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Now, log in to the PostgreSQL command line. You can do this by running &lt;CODE&gt;psql -U username&lt;/CODE&gt; where &lt;CODE&gt;username&lt;/CODE&gt; is your PostgreSQL username.&lt;/LI&gt;
&lt;LI&gt;Once logged in, run the following SQL command to reset your password: &lt;CODE&gt;ALTER USER username PASSWORD 'newpassword';&lt;/CODE&gt; (replace &lt;CODE&gt;username&lt;/CODE&gt; and &lt;CODE&gt;newpassword&lt;/CODE&gt; with your actual username and the new password you wish to set).&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Restore Original Configuration:&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;After resetting your password, don't forget to revert the changes made in the &lt;CODE&gt;pg_hba.conf&lt;/CODE&gt; file.&lt;/LI&gt;
&lt;LI&gt;Change &lt;CODE&gt;trust&lt;/CODE&gt; back to &lt;CODE&gt;md5&lt;/CODE&gt; or its original setting.&lt;/LI&gt;
&lt;LI&gt;Reload the PostgreSQL service again as you did in step 3.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Test the New Password:&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Finally, test the new password by logging into PostgreSQL with the new credentials.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;H3&gt;Important Notes:&lt;/H3&gt;
&lt;UL&gt;
&lt;LI&gt;Ensure that you have the necessary administrative permissions to make these changes.&lt;/LI&gt;
&lt;LI&gt;Be cautious when editing the &lt;CODE&gt;pg_hba.conf&lt;/CODE&gt; file, as incorrect settings can affect database security.&lt;/LI&gt;
&lt;LI&gt;Always back up the &lt;CODE&gt;pg_hba.conf&lt;/CODE&gt; file before making any changes.&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 10 Jan 2024 23:19:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/PostgreSQL-Password-forgot/m-p/2160262#M13207</guid>
      <dc:creator>Scotchy</dc:creator>
      <dc:date>2024-01-10T23:19:01Z</dc:date>
    </item>
  </channel>
</rss>

