You are not logged in.
I use unidac, on the server side, I set as follow:
function CreateConnection(dbConfig: TDatabaseConfig): TSQLDBUniDACConnectionProperties;
begin
Result := TSQLDBUniDACConnectionProperties.Create('MySQL',dbConfig.Name, dbConfig.Username,dbConfig.Password );
Result.SpecificOptions.Values['Server'] := dbConfig.Address;
Result.SpecificOptions.Values['Port'] := IntToStr(dbConfig.Port);
(Result.MainConnection as TSQLDBUniDACConnection).Database.LoginPrompt := false;
end;
So, there is not login prompt dialog when I run server, but it still popup login prompt dialog when I run client side, the code as follow:
fModel := TSQLModel.Create([TRoute,TTrip],RESTRestRootName);
fClient := TSQLHttpClientWinHTTP.Create(AppConfig.Server, AppConfig.Port, fModel);
How can I solve this ? thanks!
Offline