Re: pgAdmin commandLine - Mailing list pgadmin-support

From Ni Ne
Subject Re: pgAdmin commandLine
Date
Msg-id CY4PR19MB11608B2C4B88FBC3A3704C51B5809@CY4PR19MB1160.namprd19.prod.outlook.com
Whole thread Raw
In response to Re: pgAdmin commandLine  (Saif Manai <manaisaif24@gmail.com>)
Responses Re: pgAdmin commandLine
List pgadmin-support
Saif,

Try first to open a command terminal by typing cmd.exe from the Windows Run prompt. Then from that window execute the psql commands.


From: Saif Manai <manaisaif24@gmail.com>
Sent: Friday, October 22, 2021 7:38:07 AM
To: Aditya Toshniwal <aditya.toshniwal@enterprisedb.com>
Cc: pgadmin-support lists.postgresql.org <pgadmin-support@lists.postgresql.org>
Subject: Re: pgAdmin commandLine
 
Thank you for your reactivity.
When i double click psql a commandLine appear and disappear directely without having the time to connect to server. 
Is there anyway to use when comand psql with server, database password, username and port in parameters? 

Le ven. 22 oct. 2021 à 13:18, Aditya Toshniwal <aditya.toshniwal@enterprisedb.com> a écrit :
Hi Saif,

You can use PostgreSQL provided psql or pgAdmin shipped psql in - C:\Program Files\pgAdmin 4\v6\runtime.

On Fri, Oct 22, 2021 at 3:48 PM Saif Manai <manaisaif24@gmail.com> wrote:
Hello,

I had pgAdmin4 v4.3 and installed recently v6.1 (last one).

Is there a way to launch a connection to a server (or database) by command line without opening the UI, like this exemple for HeidiSQL on Windows :
"D:\HeidiSQL\heidisql.exe" -n "8" -h "{Address}" -u "{UserName}" -p "{Password}" -db "{Database}" -P "{Port}"

Thank you in advance

Best Regards,


--
Thanks,
Aditya Toshniwal
pgAdmin Hacker | Software Architect | edbpostgres.com
"Don't Complain about Heat, Plant a TREE"

pgadmin-support by date:

Previous
From: Rodrigo Mariano
Date:
Subject: Re: Problem related to volume creation to pgadmin 4 Docker image
Next
From: Ray O'Donnell
Date:
Subject: Reorder servers?