Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nxFwU-00075q-4W for pgsql-general@arkaria.postgresql.org; Fri, 03 Jun 2022 22:38:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nxFwS-0000xL-TE for pgsql-general@arkaria.postgresql.org; Fri, 03 Jun 2022 22:38:52 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nxFwS-0000xC-Ie for pgsql-general@lists.postgresql.org; Fri, 03 Jun 2022 22:38:52 +0000 Received: from p-impout003aa.msg.pkvw.co.charter.net ([47.43.26.134] helo=p-impout003.msg.pkvw.co.charter.net) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nxFwL-0003jX-3o for pgsql-general@lists.postgresql.org; Fri, 03 Jun 2022 22:38:51 +0000 Received: from raker.lan ([24.163.67.44]) by cmsmtp with ESMTPA id xFwFnsGEDR0wIxFwGnRP4w; Fri, 03 Jun 2022 22:38:41 +0000 X-Authority-Analysis: v=2.4 cv=FYAkeby6 c=1 sm=1 tr=0 ts=629a8d71 a=DQjDuPnXzmJSQFi5SsPVwA==:117 a=DQjDuPnXzmJSQFi5SsPVwA==:17 a=IkcTkHD0fZMA:10 a=MA93NexRAicC-n9DWZwA:9 a=QEXdDO2ut3YA:10 Message-ID: Subject: Re: Why password authentication failed for user "postgres"? From: Reid Thompson Reply-To: jreidthompson@nc.rr.com To: pgsql-general@lists.postgresql.org In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Date: Fri, 03 Jun 2022 18:38:35 -0400 MIME-Version: 1.0 User-Agent: Evolution 3.45.1 Compiled: 2022-05-12 08:45:48 X-CMAE-Envelope: MS4xfJYTDKIBPlzCxmm0xXqQRuTmGgfvqTlfbMqummLcnAQCihsr6D/VRiRWYZYwn2304fG8lFlKcxVQrOn5fYLL38X8GJ24G12RaHaMh0nWFgZ0d4/b/VHK A33S2K099S/6V2jtY4zY7+yoN7BLCLwsAuRcc65Bf5et9FmojSBg9W38JPKwk5EIf9kqMYXEUONgkrE5ysfuoMZhRamRT7qkKJV1NdlJ4bqVPsu6rlq9l+zD 609ueptzHHRST+47r/JaEA== List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sat, 2022-06-04 at 06:32 +0800, BeginnerC wrote: > Hello everyone, > I am a newbie to the postgres,when I use the psql to connect to the > postgres,a error message printed: > These command list like this: >=20 > psql -U postgres > Password for user postgres:postgres > postgreSQL: password authentication failed for user "postgres" >=20 > How to solve this problem? > Thanks in advance! this may work... switch user to postgres. $ sudo su - postgres login to postgres $ psql=C2=A0 reset the password for postgres postgres-# \password =20