MySql - Problema com ZeosLib
20/10/2003
0
Estou iniciando no BD Mysql. Recentemente fiz a instalação
da versão 4.1 for Windows 2000. Instalei em seguida o MySQL Front 2.5
(para as tabelas) e agora tive um problema para trabalhar com o
ZeosLib. Fiz as instalação conforme o howto, (compilado e instalado
no Delphi 6, com as paletas visíveis no Delphi). Mas quando tento desenvolver a ligação entre os componentes do ZeosLib, por exemplo o
ZQuery (propriedade active para true) recebo a seguinte informação:
´Dynamic Library libmysql.dll not found´.
OU seja, não encontra o arquivo libmysql.dll , mas.. esse mesmo arquivo
se mantem presente no sistema em varios caminhos:
c:\mysql\bin
c:\mysql\lib\debug
c:\mysql\lib\opt
c:\Arquivos de programas\Mysql-front
c:\Arquivos de programas\Borland\Delphi6\componentes\zeoslib\
Tenho convicção que a instalação do ZeosLib está correta.. só nao compreendo porque não encontra esse arquivo sendo q está no mesmo dir. Alguma dica?
abraços
cesar
Steinhorst
Posts
20/10/2003
Patrick
BEM NORMALMENTE ESSA DLL É COLOCADA DENTRO DA PASTA SYSTEM E SYSTEM32, DENTRO DO DIRETÓRIO QUE O WINDOWS ESTÁ INSTALADO.... É NECESSÁRIO QUE ELA ESTEJA NESSES E DENTRO DA PASTA ONDE ESTÁ SEU SISTEMA... SENDO CARREGADA SEMPRE ONDE O SISTEMA ESTIVER....
CARA, DEVE SER ISSO, TENTA AÍ E SE NÃO DER CERTO ENTRE EM CONTATO....
e-mail: pann@pop.com.br
icq: 149539897
21/10/2003
Luizhfj
=======================
You can download the current version from http://www.zeoslib.net (section Downloads).
1. Unpack the archive to a folder
[b:3e53d73b7e]2. Copy the required dlls from lib directory to the windows system directory
(usually Windows\System or winnt\system32).[/b:3e53d73b7e]
3. Locate the package directory associated with your compiler and open the ZeosDbo.bpg
project group. Load the project and install the following components in the order
listed:
- ZCore.bpl
- ZParse.bpl
- ZParseSql.bpl
- ZPlain.bpl
- ZDbc.bpl
- ZComponent.bpl
4. Create your own project and start adding the compoents through the IDE and set
connection properties. For a quick tutorial, use the example provided with the
project or browse the resources on the web page.
LIMITATIONS:
1. While installing ZeosDBO under C++ Builder version 4 from the IDE, you may get this
error when compiling the ZDbc package :
<<
[Pascal Fatal Error] ZDbcMetadata.pas(3076): Internal error: SY876.
>>
Currently, there is no known solution to this problem. Therefore, it is recommended
to compile Zeoslib from the command line (issuing a ´make -f ZeosDBO.bpg´ from the
directory ´\packages\cbuilder4´ should accomplish this) and then to install the
packages through
21/10/2003
Steinhorst
valeu !
12/01/2004
Inaudio
Tinha esquecido de colocar a LibMySql323.DLLL em C:\Windows\System
, aqui uso Win98
Usando Delphi 5 com Zeos 6.012e MySql 3.23, quais componentes abrem para gente utilizar ?
Você tem algum material sobre estes componentes ou algum site para obtê-los ?
Ao abrir o Delphi aqui temos as seguintes componentes no Zeos :
a) ZConnection - funcionou ok Conectou o Banco sem problemas
b) ZReadOnlyQuery
c) ZQuery
Nas propriedades do Object Inspector temos >
Active Não conseguimos ativar
Name ZQuery1
Connection [b:04ffa04300]O que vai nessa propriedade afinal ?[/b:04ffa04300] SQL SELECT * FROM Empresas
d) ZUpdateSQL
e) ZSQLProcessor
A maioria destes componentes tem a Propriedade Connection para configura e usei ainda o apontamento para o banco por esta propriedade.
Estava tentando abrir o bco_gcd
Tabela empresas
Conecto com MySql 3.23 Host 127.0.0.1 ( local no pc fora da rede)
Porta 3306
User root
Senha tudo branco inicialmente
Nome bco_gcd
Se tiver alguma dica a respeito agradeco
Grato
Clique aqui para fazer login e interagir na Comunidade :)