Recent

Author Topic: libmysql.dll ??  (Read 2717 times)

perhen

  • New Member
  • *
  • Posts: 15
libmysql.dll ??
« on: November 24, 2014, 05:50:38 pm »
Hello
I try to use MySQL together with Lazarus, and I have read this tutorial: http://wiki.lazarus.freepascal.org/SQLdb_Tutorial1
I 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

exdatis

  • Hero Member
  • *****
  • Posts: 668
    • exdatis
Re: libmysql.dll ??
« Reply #1 on: November 24, 2014, 06:06:57 pm »
« Last Edit: November 24, 2014, 06:10:27 pm by exdatis »

 

TinyPortal © 2005-2018