Henry Vermaak ha scritto:
On 14/05/07, Alvise Nicoletti <[EMAIL PROTECTED]> wrote:
However: how difficult can it be to install zeos on lazarus for linux?
I prefer to use "light" libraries like I did in the past and I like
SQLdb... however i need to be sure that all works and it's stable...
if you want something really light, just look at the example code
under fpc/packages/base/mysql. it calls the mysql libs directly.
otherwise look at the examples under
fpc.packages/fcl-db/src/sqldb/examples for the oo approach.
remember to install the mysql*-dev packages (in ubuntu) to make sure
they'll link. also look at the database faq in the wiki.
henry
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives
Thank you.
You're talking about the cvs i suppose, I'll try to give a look at them.
In the meantime I show you the code I'm using, just to ensure i'm doing
right:
program alvise_servizio;
uses baseunix, cthreads, SysUtils, mysql4conn, sqldb, db, mysql4, MySQLDB4;
procedure daemon;
var
Connessione: TMySQL40Connection;
Query: TSQLQuery;
begin
Connessione:= TMySQL40Connection.Create(nil);
Query:= TSQLQuery.Create(nil);
Connessione.HostName:='localhost';
Connessione.UserName:='un';
Connessione.Password:='up';
Connessione.Connected:=true;
while (true) do begin
sleep(10000);
WriteLn('bla bla');
end;
end;
var
pid: Tpid;
begin
WriteLn('hi! im a bad daemon!');
pid:=fpfork;
if (pid=0) then
daemon;
end.
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives