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 1lwQOZ-0004DK-Ba for pgsql-general@arkaria.postgresql.org; Thu, 24 Jun 2021 14:31:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lwQOY-0007oz-9Y for pgsql-general@arkaria.postgresql.org; Thu, 24 Jun 2021 14:31:54 +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 1lwQOY-0007or-0v for pgsql-general@lists.postgresql.org; Thu, 24 Jun 2021 14:31:54 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lwQOW-00023J-0H for pgsql-general@lists.postgresql.org; Thu, 24 Jun 2021 14:31:53 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 15OEVoRr2621428; Thu, 24 Jun 2021 10:31:50 -0400 From: Tom Lane To: Carlo Poso cc: =?UTF-8?B?0JTQvNC40YLRgNC40Lkg0JjQstCw0L3QvtCy?= , pgsql-general@lists.postgresql.org Subject: Re: OSX: migrating Postgres db from one Mac to another In-reply-to: References: Comments: In-reply-to Carlo Poso message dated "Thu, 24 Jun 2021 16:15:31 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2621426.1624545110.1@sss.pgh.pa.us> Date: Thu, 24 Jun 2021 10:31:50 -0400 Message-ID: <2621427.1624545110@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Carlo Poso writes: > The message I get after entering the PW is "could not connect to server: > Connection refused Is the server > running on host "localhost" (::1) and accepting TCP/IP connections on port > 5432? could not connect to server: Connection refused Is the server running > on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port > 5432?" So the step you missed is "start the Postgres server". On OSX that's usually done by setting up a LaunchDaemon script, IIRC (it's been awhile since I messed with that). regards, tom lane