Hello
I try to use MySQL together with Lazarus, and I have read this tutorial:
http://wiki.lazarus.freepascal.org/SQLdb_Tutorial1I do have a table with content, I set up a dbConnection (MySQL56Connection1) and do all other things as explained in the tutorial.
In code I have written:
procedure TForm1.Button1Click(Sender: TObject);
begin
SQLQuery1.close;
SQLQuery1.SQL.Text := 'select * from customer';
DBConnection.connected := true;
SQLTransaction1.active := true;
SQLQuery1.Open;
end;
Everything works fine here. But why does it work even if I remove theses two lines:
DBConnection.connected := true;
SQLTransaction1.active := true;
?
And why do I get errormessage "Can not load default library (libmysql.dll or libmysql.dll)" when I try to set the Connected-poperty to True in the Object Inspector of the DBConnection? The file is copied to the folder of all the rest of the lpi, pas and lfm-files.
I'll be thankfull for an answer.
perhen