It shouldn't be necessary to open 3306 on your router as it is outgoing.
This works perfectly for me:
But you need the libmysql.dll from 5.6 in your .exe directory.
You can take the one from the latest MySQL Workbench installation.
program upload2;
uses
sqldb, mysql56conn;
var
AConnection: TSQLConnector;
procedure CreateConnection;
begin
AConnection := TSQLConnector.Create(nil);
AConnection.ConnectorType := 'MySQL 5.6';
AConnection.Hostname := 'sql5.freemysqlhosting.net';
AConnection.DatabaseName := 'sql561707';
AConnection.UserName := 'sql561707';
AConnection.Password := 'dX3%eP3!';
end;
begin
CreateConnection;
AConnection.Open;
if Aconnection.Connected then
begin
writeln('Successful connect!');
readln
end
else
writeln('This is not possible, because if the connection failed, an exception should be raised, so this code would not be executed');
AConnection.Close;
AConnection.Free;
readln;
end.
(Result is 'Successful connect!')