Without seeing your code I can only guess.
I assume you are executing those mysql.exe
commands locally.
The first error is caused by your attempt to redirect input of mysql.exe
from sftp://
URL. That's not possible on Windows (actually I'm not aware of any OS where this is possible).
The second error is caused by an attempt to access remote file from a local environment.
Simply, the fact that you connected over SFTP with Renci.SSHNet does not make Process
magically work over both local and remote filesystems.
If your remote MySQL database can be managed remotely (using local mysql.exe
), solution is to download your MySQL scripts and use them locally.
Though if you are able to execute remote "unzip" command, you should be able to execute remote MySQL client too (instead of local Windows mysql.exe
client). That would save bandwidth for downloading the script and uploading data back.