本文整理自网络,侵删。
with FDPhysMySQLDriverLink1 do begin DriverID := 'MySQL'; VendorLib :=ExtractFilePath(Application.Exename)+ 'libmysql.dll'; end; with FDConnection1 do begin DriverName := 'MySQL'; LoginPrompt := false; Params.Database := 'Test'; Params.DriverID := 'MySQL'; Params.UserName := 'root'; Params.Password := '123456'; Connected := true; end; with FDQuery1 do begin Connection := FDConnection1; SQL.Add('select * from address'); Active := true; // <----- Crash end;
相关阅读 >>
Delphi firemonkey app 如何获得当前系统语言设置
Delphi getmodulefilename函数的用法(可以获取项目的路径,桌面的路径,我的文档的路径)
Delphi application.processmessages
更多相关阅读请进入《Delphi》频道 >>