Cmd line launch to PostgreSQL error on libmariadb.dll

DCom82's profile image DCom82 posted 4 years ago in Creating a connection Permalink

Hello, I would like to use command line parameters to automate opening a connection to my PostgreSQL. Going by the guide at ./help.php#commandline I used the following switches...

C:\Program Files\HeidiSQL\heidisql.exe -n=8 -h=$SERVER -u=$USERNAME -p=$PASSWORD -P=5432

This results in the following error:

Description

I installed the VC Redistributable, but to no avail. But if I initiated the connection manually in the HeidiSQL Session Manager then everything works fine - because I can select libpq-12.dll in the drop-down menu.

What am I missing on the command line parameters, please?

Cheers, Daniel

ansgar's profile image ansgar posted 4 years ago Permalink

Oh this is an issue in the command line processing logic. "libmariadb.dll" is of course the wrong one when connecting to PostgreSQL. Instead, "-n=8" should let HeidiSQL use "libpq.dll" instead. I should fix that.

Code modification/commit 5475776 from Ansgar Becker <anse@heidisql.com>, 4 years ago, revision 10.3.0.5886
Use default library of given network type in command line receiver. See https://www.heidisql.com/forum.php?t=35656
ansgar's profile image ansgar posted 4 years ago Permalink

Should be fixed in the next build.

Please login to leave a reply, or register at first.