<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>postgres user &#8211; Database Research &amp; Development</title>
	<atom:link href="https://www.dbrnd.com/tag/postgres-user/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.dbrnd.com</link>
	<description>BIGData &#124; NoSQL &#124; MSSQL &#124; MySQL &#124; PostgreSQL</description>
	<lastBuildDate>Wed, 25 Apr 2018 17:43:33 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.4</generator>
	<item>
		<title>PostgreSQL: How to Recover postgres User Password?</title>
		<link>https://www.dbrnd.com/2018/04/postgresql-how-to-recover-postgres-user-password/</link>
					<comments>https://www.dbrnd.com/2018/04/postgresql-how-to-recover-postgres-user-password/#comments</comments>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Wed, 25 Apr 2018 17:50:20 +0000</pubDate>
				<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[forget postgres password]]></category>
		<category><![CDATA[plpgsql]]></category>
		<category><![CDATA[Postgres Query]]></category>
		<category><![CDATA[postgres user]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[PostgreSQL Administrator]]></category>
		<category><![CDATA[PostgreSQL Error]]></category>
		<category><![CDATA[PostgreSQL Monitoring]]></category>
		<category><![CDATA[PostgreSQL Performance Tuning]]></category>
		<category><![CDATA[PostgreSQL Programming]]></category>
		<category><![CDATA[PostgreSQL Tips and Tricks]]></category>
		<category><![CDATA[recover postgres password]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=7025</guid>

					<description><![CDATA[<div><img width="600" height="520" src="https://www.dbrnd.com/wp-content/uploads/2018/01/dont-forget-postgres-password.png" class="attachment-post-image size-post-image wp-post-image" alt="dont forget postgres password" decoding="async" fetchpriority="high" /></div>In this post, I am sharing few steps for recovering the forgot password of postgres user (admin user) of PostgreSQL. Yesterday, I was checking few forums of PostgreSQL and found that few DBAs forgot their password after installation of PostgreSQL. The postgres user is a superuser of PostgreSQL, and it is a default user also. [&#8230;]]]></description>
										<content:encoded><![CDATA[<div><img width="600" height="520" src="https://www.dbrnd.com/wp-content/uploads/2018/01/dont-forget-postgres-password.png" class="attachment-post-image size-post-image wp-post-image" alt="dont forget postgres password" decoding="async" /></div><p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F04%2Fpostgresql-how-to-recover-postgres-user-password%2F&amp;linkname=PostgreSQL%3A%20How%20to%20Recover%20postgres%20User%20Password%3F" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F04%2Fpostgresql-how-to-recover-postgres-user-password%2F&amp;linkname=PostgreSQL%3A%20How%20to%20Recover%20postgres%20User%20Password%3F" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F04%2Fpostgresql-how-to-recover-postgres-user-password%2F&amp;linkname=PostgreSQL%3A%20How%20to%20Recover%20postgres%20User%20Password%3F" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F04%2Fpostgresql-how-to-recover-postgres-user-password%2F&amp;linkname=PostgreSQL%3A%20How%20to%20Recover%20postgres%20User%20Password%3F" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F04%2Fpostgresql-how-to-recover-postgres-user-password%2F&amp;linkname=PostgreSQL%3A%20How%20to%20Recover%20postgres%20User%20Password%3F" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F04%2Fpostgresql-how-to-recover-postgres-user-password%2F&amp;linkname=PostgreSQL%3A%20How%20to%20Recover%20postgres%20User%20Password%3F" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F04%2Fpostgresql-how-to-recover-postgres-user-password%2F&#038;title=PostgreSQL%3A%20How%20to%20Recover%20postgres%20User%20Password%3F" data-a2a-url="https://www.dbrnd.com/2018/04/postgresql-how-to-recover-postgres-user-password/" data-a2a-title="PostgreSQL: How to Recover postgres User Password?"></a></p><p>In this post, I am sharing few steps for recovering the forgot password of postgres user (admin user) of PostgreSQL. </p>
<p>Yesterday, I was checking few forums of PostgreSQL and found that few DBAs forgot their password after installation of PostgreSQL. </p>
<blockquote><p>The postgres user is a superuser of PostgreSQL, and it is a default user also. While installing PostgreSQL, you have to set the password of postgres user, and if you forget the password, you can&#8217;t do any operation like create first DB or create first DB User. </p></blockquote>
<p><strong>How to recover forgotten password of PostgreSQL?</strong></p>
<p><strong>Edit pg_hba.conf file:</strong><br />
Change below line for MD5 to TRUST </p>
<pre class="crayon-plain-tag">host    all      postgres    127.0.0.1/32     trust</pre> </p>
<p><strong>Restart the PostgreSQL Server:</strong></p>
<pre class="crayon-plain-tag">sudo /etc/init.d/postgresql restart</pre> </p>
<p><strong>Connect the PostgreSQL:</strong></p>
<pre class="crayon-plain-tag">psql -h localhost -U postgres</pre> </p>
<p><strong>Change the password of postgres user:</strong></p>
<pre class="crayon-plain-tag">ALTER USER postgres with password 'new_password';</pre> </p>
<p><strong>Last, rollback the change in pg_hba.conf file and restart the PostgreSQL Server:</strong></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dbrnd.com/2018/04/postgresql-how-to-recover-postgres-user-password/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
	</channel>
</rss>
