Discussion:
libmysql.dll
Leonardo Rame
2010-05-24 18:35:37 UTC
Permalink
Hi, I'm using Lazarus 0.9.29 64bits on Windows Seven 64bits. I can't make SqlDb's MySql Database connector to work.

Just downloaded "MySQL Connector C 6.0.2" from Mysql website, then copied libmysql.dll from "C:\Program Files\MySQL\MySQL Connector C 6.0.2\lib\opt" to my Lazarus home directory.

When I try to set a MySql50Connection component's Connected to True, then this error is shown:

"Can not resolve symbol 'my_init' of interface mysql from library libmysql.dll"

P.S.: I've also tried copying the library to c:\Windows\System32 and c:\Windows\SysWOW64, but the error is the same.

Leonardo.
Vannus
2010-05-24 18:52:57 UTC
Permalink
Post by Leonardo Rame
Hi, I'm using Lazarus 0.9.29 64bits on Windows Seven 64bits. I can't make
SqlDb's MySql Database connector to work.
Just downloaded "MySQL Connector C 6.0.2" from Mysql website, then copied
libmysql.dll from "C:\Program Files\MySQL\MySQL Connector C 6.0.2\lib\opt"
to my Lazarus home directory.
When I try to set a MySql50Connection component's Connected to True, then
"Can not resolve symbol 'my_init' of interface mysql from library libmysql.dll"
P.S.: I've also tried copying the library to c:\Windows\System32 and
c:\Windows\SysWOW64, but the error is the same.
Leonardo.
are you using the right version of libmysql.dll? iirc it probably needs to
be a version 5 mysql.
sorry can't help any further than that, im using 32bit.

- V
Leonardo Rame
2010-05-24 19:27:37 UTC
Permalink
----- Mensaje original -----
Fecha: Mon, 24 May 2010 19:52:57 +0100
De: "Vannus" <***@gmail.com>
Para: "Lazarus mailing list" <***@lists.lazarus.freepascal.org>
Asunto: Re: [Lazarus] libmysql.dll
are you using the right version of libmysql.dll? iirc it probably needs to be a version 5 mysql.
sorry can't help any further than that, im using 32bit.
- V
Solved, I had to download the full MySql 5.1 server 64bits (.msi file), then install only the Client part, then extract libmySQL.dll (not the uppercase SQL text) and copy it into the Lazarus directory.

Leonardo.

Loading...