Home How to embed MySQL (libmysqld.dll) using Delphi ZEOS
Reply: 0

How to embed MySQL (libmysqld.dll) using Delphi ZEOS

Erwan
1#
Erwan Published in 2013-05-08 15:51:05Z

I'm trying to use embedded mysql database using libmysqld.dll (mysql 5.1) with zeos (7.0.3) in Delphi XE
i put libmysqld.dll in the same directory,
folder language\errmsg.sys
folder data\belajar\biodata.frm,biodata.MYD,biodata.MYI,db.opt

unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, ZAbstractConnection, ZConnection;

type
  TForm1 = class(TForm)
    Button1: TButton;
    ZCon: TZConnection;
    procedure Button1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
begin
       ZCon.Protocol := 'mysqld-5';
       zcon.Database := 'belajar';
       zcon.Connect;
end;

end.

When i run the code, click the button1 and then it just closed, no error message, the application terminated.

any help?


update:

i have solved this problem, i put the wrong name and version of "language" folder, it should be "share" folder and errmsg.sys in the english subfolder

thankyou everyone

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.515398 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO