<?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>question Re: Able to find the database server and database, but the login request was rejected - Postgresql in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Able-to-find-the-database-server-and-database-but-the-login/m-p/359757#M238196</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/23262"&gt;@Srinivs&lt;/a&gt;&amp;nbsp;Kindly check if the username and passwords are correct for DB and there should not be any extra space.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;grant the privileges as shown below.

postgres=# GRANT CONNECT ON DATABASE rman TO rman;
GRANT
postgres=# GRANT ALL ON DATABASE rman TO rman;
GRANT
postgres=# GRANT ALL PRIVILEGES ON DATABASE "rman" to rman;
GRANT&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;If you found that the provided solution(s) assisted you with your query, please take a moment to login and click&lt;FONT size="5" color="#FF6600"&gt;&lt;STRONG&gt; Accept as Solution&lt;/STRONG&gt;&lt;/FONT&gt; below each response that helped.&lt;/P&gt;</description>
    <pubDate>Sun, 18 Dec 2022 12:45:41 GMT</pubDate>
    <dc:creator>Kartik_Agarwal</dc:creator>
    <dc:date>2022-12-18T12:45:41Z</dc:date>
    <item>
      <title>Able to find the database server and database, but the login request was rejected - Postgresql</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Able-to-find-the-database-server-and-database-but-the-login/m-p/358237#M237783</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When we try to install the Cloudera Management Service we got the below error "login request was rejected" in PostgresSQL. Please advise.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PostgresSQL&amp;nbsp; - 10.19&lt;/P&gt;&lt;P&gt;Cloudera manager - 7.6.5, and&lt;/P&gt;&lt;P&gt;OS - RHEL 8.4.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is no Auto-TLS or Kerberos as it is a POC cluster we trying to install.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CM_error-1.PNG" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/36303iBB8476643029D76A/image-size/large?v=v2&amp;amp;px=999" role="button" title="CM_error-1.PNG" alt="CM_error-1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;error message in Cloudera-scm-server.log:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2022-11-23 19:07:36,287 ERROR CommandPusher-1:com.cloudera.cmf.model.DbCommand: Command 1546334432(RepMgrTestDatabaseConnection) has completed. finalstate:FINISHED, success:false, msg:Logon denied for user/password. &lt;EM&gt;Able to find the database server and database, but the login request was rejected.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;2022-11-23 19:07:36,287 INFO CommandPusher-1:com.cloudera.cmf.command.components.CommandStorage: Invoked delete temp files for command:DbCommand{id=1546334432, name=RepMgrTestDatabaseConnection, host=hostname01.company.com} at dir:/var/lib/cloudera-scm-server/temp/commands/1546334432&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 15:17:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Able-to-find-the-database-server-and-database-but-the-login/m-p/358237#M237783</guid>
      <dc:creator>Srinivs</dc:creator>
      <dc:date>2022-11-23T15:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: Able to find the database server and database, but the login request was rejected - Postgresql</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Able-to-find-the-database-server-and-database-but-the-login/m-p/359756#M238195</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you create a separate user in the database for each service and retry?&lt;/P&gt;&lt;P class="p1"&gt;You should NOT use the root user for all databases.&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;Refer below doc:&lt;/P&gt;&lt;P class="p1"&gt;&lt;A href="https://docs.cloudera.com/documentation/enterprise/latest/topics/cm_ig_extrnl_pstgrs.html#cmig_topic_5_6_2" target="_blank"&gt;https://docs.cloudera.com/documentation/enterprise/latest/topics/cm_ig_extrnl_pstgrs.html#cmig_topic_5_6_2&lt;/A&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;Regards,&lt;/P&gt;&lt;P class="p1"&gt;Chethan YM&lt;/P&gt;</description>
      <pubDate>Sun, 18 Dec 2022 10:39:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Able-to-find-the-database-server-and-database-but-the-login/m-p/359756#M238195</guid>
      <dc:creator>ChethanYM</dc:creator>
      <dc:date>2022-12-18T10:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: Able to find the database server and database, but the login request was rejected - Postgresql</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Able-to-find-the-database-server-and-database-but-the-login/m-p/359757#M238196</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/23262"&gt;@Srinivs&lt;/a&gt;&amp;nbsp;Kindly check if the username and passwords are correct for DB and there should not be any extra space.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;grant the privileges as shown below.

postgres=# GRANT CONNECT ON DATABASE rman TO rman;
GRANT
postgres=# GRANT ALL ON DATABASE rman TO rman;
GRANT
postgres=# GRANT ALL PRIVILEGES ON DATABASE "rman" to rman;
GRANT&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;If you found that the provided solution(s) assisted you with your query, please take a moment to login and click&lt;FONT size="5" color="#FF6600"&gt;&lt;STRONG&gt; Accept as Solution&lt;/STRONG&gt;&lt;/FONT&gt; below each response that helped.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Dec 2022 12:45:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Able-to-find-the-database-server-and-database-but-the-login/m-p/359757#M238196</guid>
      <dc:creator>Kartik_Agarwal</dc:creator>
      <dc:date>2022-12-18T12:45:41Z</dc:date>
    </item>
  </channel>
</rss>

