connect SSHClient and MySQL
Posted: Tue 09 Apr 2013 17:08
Hi
I use MyDAC 7.6.12 for Delphi 2009 and SecureBridge 5.5.1 for Delphi 2009
After sshclient connect , TMyconnection cannot connect MySQL server
error message is "Not overriden in an inherited class" (CRVio.pas line 372)
Please check a source code
I use MyDAC 7.6.12 for Delphi 2009 and SecureBridge 5.5.1 for Delphi 2009
After sshclient connect , TMyconnection cannot connect MySQL server
error message is "Not overriden in an inherited class" (CRVio.pas line 372)
Please check a source code
Code: Select all
procedure TForm10.Button1Click(Sender: TObject);
var
OldCursor: TCursor;
begin
OldCursor := Screen.Cursor;
try
Screen.Cursor := crHourGlass;
ScSSHClient.HostName := 'www.xxxx.com';
ScSSHClient.User := 'www';
ScSSHClient.Password := 'xxxx';
ScSSHClient.Port := 22;
ScSSHClient.Connect;
{
ScSSHChannel.SourcePort := 5001;
ScSSHChannel.DestPort := 3306;
ScSSHChannel.DestHost := 'localhost';
ScSSHChannel.Connect;
}
if ScSSHClient.Connected then
begin
With MyConnection1 do
begin
IOHandler := MySSHIOHandler;
Server := 'localhost';
UserName := 'root';
Password := 'xxx';
Connect;
end;
end;
finally
Screen.Cursor := OldCursor;
end;
end;