Ads were blocked - no problem. But keep in mind that developing HeidiSQL, user support and hosting takes time and money. You may want to send a donation instead.

Need help with wine / postgresql / ssh

raphael75's profile image raphael75 posted 2 months ago in Creating a connection Permalink

I used wine to install putty and heidisql on Debian 10. I need to connect to a postgres db using ssh. When I try to connect I get the error:

"could not execute plink"

It seems that it would need to prefix "wine" to the command so it would be something like

wine C:\Program Files\PuTTY\plink.exe ...

Is that correct, or is there some other way to get it to work?

Also, I'm not sure what to put for the "local port".

Thanks!

ansgar's profile image ansgar posted 2 months ago Permalink

I heard before that the path to plink makes problems on Wine when executing the command. To prevent that, you can try use a relative path to plink. Maybe you need to put plink.exe into the same folder as heidisql.exe and remove the entire path to it.

Related topic

Arffeh's profile image Arffeh posted 2 months ago Permalink

My 2 cents:

Don't give Heidi relative paths. Certain dialogs cause Heidis working path to "slip" to another directory after using certain dialogs. I'm yet to narrow down which dialogs cause it, as I've usually done many different actions in the course of a day before attempting another connection, when Heidi starts spitting that it can't find the plink executable anymore.

For me, I have plink set up as C:\plink.exe (plink sitting in wines C:\ directory, /home/arffeh/.wine/drive_c/plink.exe), which for some reason the wine pathing interaction seems fine with.

Just Wine Thingsā„¢

imsorryansgarpleasedonthurtme :)

Ads were blocked - no problem. But keep in mind that developing HeidiSQL, user support and hosting takes time and money. You may want to send a donation instead.
ansgar's profile image ansgar posted 2 months ago Permalink

Won't hurt you as you're far enough away from me :)

I just wonder about that path confusion, as I never experienced it, at least on Windows. But it may also be I am just not using relative paths.

Arffeh's profile image Arffeh posted 2 months ago Permalink

In the above case, the relative path issue has been on both windows and wine.

I gave up attempting to using relative after a while, it was getting in the way of work.


Unrelated, how many wine related issues am I allowed to clobber you with at the same time? Would you prefer one megathread here, or one issue on GitHub per problem? :)

I'm finding my experience under wine severely broken. I found myself reaching for phpmyadmin for the first time since Heidis release because I wasn't even able to delete a row without crashing. :)

ansgar's profile image ansgar posted 2 months ago Permalink

If you provide feedback and reproduction recipe, I would prefer Github issues for each of them. Unfortunately, I have no machine for testing Linux things, so some things can take a while, or may even be unsolvable for me. If there's a callstack (the text file you can save on the crash handler), then you should definitely include these in your reports.

Here are all open Wine issues on Github, maybe you find one or the other you also faced: https://github.com/HeidiSQL/HeidiSQL/labels/wine

Arffeh's profile image Arffeh posted 2 months ago Permalink

I can reliably make it crash every minute. :)

Do you have access to a hypervisor? (vbox, qemu, vshere, etc)

If you would like, I could create a VM, reproduce all crashes, report all crashes(callstack, steps of reproduction, screenshots) in github, and send you the VM image. That way you have a fuss-free environment to test in.

If heidi could get to a state of not crashing every minute, it would be extremely impressive.

ansgar's profile image ansgar posted 2 months ago Permalink

I am just familiar with Microsoft's HyperV, never heard of the other ones.

Though the idea sounds nice. Probably you can advice me what to do to get that VM running after you set it up?

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