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 1lqHc1-00060t-0r for pgsql-general@arkaria.postgresql.org; Mon, 07 Jun 2021 15:56:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lqHbz-0002Rq-SZ for pgsql-general@arkaria.postgresql.org; Mon, 07 Jun 2021 15:56:23 +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 1lqHbz-0002J0-JB for pgsql-general@lists.postgresql.org; Mon, 07 Jun 2021 15:56:23 +0000 Received: from mail.appl-ecosys.com ([50.126.108.78]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lqHbt-0007cs-H6 for pgsql-general@lists.postgresql.org; Mon, 07 Jun 2021 15:56:22 +0000 Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by mail.appl-ecosys.com (Postfix) with ESMTP id 7D8382A0106 for ; Mon, 7 Jun 2021 08:56:16 -0700 (PDT) Date: Mon, 7 Jun 2021 08:56:16 -0700 (PDT) From: Rich Shepard To: pgsql-general@lists.postgresql.org Subject: Re: Database issues when adding GUI In-Reply-To: Message-ID: References: <48392c33-d63e-15be-e7de-d7a7c0c2fd80@gmail.com> User-Agent: Alpine 2.20 (LNX 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, 7 Jun 2021, Rob Sargent wrote: > psql --host machine --user role --dbname something > For your app it might be a config file with corresponding entries, or perhaps > you command line invocation? > I suspect there's a mis-match between the two. Rob, $ psql --host salmo --user rshepard --dbname bustrac psql: error: could not connect to server: could not connect to server: Connection refused Is the server running on host "salmo" (127.0.1.1) and accepting TCP/IP connections on port 5432? could not connect to server: Connection refused Is the server running on host "salmo" (192.168.55.1) and accepting TCP/IP connections on port 5432? Yet, /tmp has .s.PGSQL.5432= and .s.PGSQL.5432.lock and I can access all databases using psql; e.g., $ psql jerrittmine psql (12.2) Type "help" for help. You're on the right path here. The server is running on salmo (the local host) and accepting connections on port 5432. At least, that's how I'm seeing it. Regards, Rich