How to embed MySQL (libmysqld.dll) using Delphi ZEOS -
i'm trying use embedded mysql database using libmysqld.dll (mysql 5.1) zeos (7.0.3) in delphi xe
put libmysqld.dll in 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 run code, click button1 , closed, no error message, application terminated.
any help?
update:
i have solved problem, put wrong name , version of "language" folder, should "share" folder , errmsg.sys in english subfolder
thankyou everyone
Comments
Post a Comment