Hi to all!
I've some problems to cennect mysql with zeoslib.
In particular set this option in TZConnection:
Port: 3306
Database: finanze
Hostname: localhost
Password: my_password
Protocol: mysql-4.1
User: root
Properties: Select * from entrate
On click event of a button, I make:
ZQuery1.ExecSQL;
But when I start the application, apears this window:
{ Questo file è stato creato automaticamente da Lazarus. Da non modificare!
Questo sorgente viene usato solo per compilare ed installare il pacchetto.
}
unit zcomponent;
interface
uses
ZAbstractDataset, ZAbstractRODataset, ZAbstractTable, ZComponentReg,
ZConnection, ZDataset, ZDatasetUtils, ZPropertyEditor, ZSqlMetadata,
ZSqlMonitor, ZSqlProcessor, ZSqlStrings, ZSqlUpdate, ZStoredProcedure,
ZStreamBlob, ZUpdateSqlEditor, ZSequence, LazarusPackageIntf;
implementation
procedure Register;
begin
RegisterUnit('ZComponentReg', @ZComponentReg.Register);
end;
initialization
RegisterPackage('zcomponent', @Register);
end.
And I recive this error:
/home/giacomo/Download/Programmazione/Lazarus/zeos/packages/lazarus/zcomponent.pas(1021) Fatal: Can't find unit ZAbstractRODataset
Why? The install of zeoslib was succesfully complet!
Is there any example on how use mysql with this library?