Conversation

Cannot load libmysql.dll library (error code 127).

(overview of excerpts from articles in conversation)

Newsgroup: embarcadero.public.delphi.database.dbexpress

# Lines
wrote on 16-Jun-2009:

Hello everybody,
I've installed CodeGear RAD Studio 2009 Architect Trial as part of upgrading my company's software from d2005 to d2009. I've given it a try compiling some simple software that use database connections.
I continiously receiving the following error when i try to connect to a mysql database:
Cannot load libmysql.dll library (error code 127). The libmysql.dll library may be missing from the system path
This happens both on design time and on runtime.
34
  
Vasileios Vatsos replied on 24-Jun-2009:

The thing is that when i execute the project from another location and not from within the IDE, the application seems to find the libmysql.
  Anyone?
  
  
  
6
    
Dmitry Arefiev replied on 24-Jun-2009:

Hello Vasileios
    Try to search for libmysql.dll dublicates on your PC.
    Then remove all of them (ok, ok ... before that, make
    an backup ). And copy appropriate libmysql.dll
    to the system32 folder.
18
  
Vasileios Vatsos replied on 24-Jun-2009:

Hello Dmitry,
  Thank you for your responce.
  I've done so, only one libmysql.dll is currently on my system and that is in c:\windows\system32
  I've triple checked that system32 IS on the system path variable.
  Nothing happens. Still when i run the program from within the IDE, i get:
26
  
Vasileios Vatsos replied on 26-Jun-2009:

Isn't there any way to really debug this thing?
  Also, why doesn't it look for eg libmysql50.dll when i change the VendorLib to libmysql50.dll from libmysql.dll?
  It looks like it really ignores the connection properties and prioritizes the properties from dbconnectsions.ini
  Edited by: Vasileios Vatsos on Jun 26, 2009 12:04 AM
  
13
  
Vasileios Vatsos replied on 26-Jun-2009:

It seems that the new dbexpress driver is not compatible with the libmysql.dll v4.0 .
  I has libmysql.dll in my system file but it was the 4.0 not the 5.0 . The message "libmysql.dll not found" is wrong. It should be something like wrong version of libmysql.dll found.
  Also, the change of vendorlib from the sqlconnection properties does not override the vendorlib from dbconnections.ini .
  Either way, the problem has been fixed.
  Thanks
17
FYI: Phrase searches are enclosed in either single or double quotes
 
 
Originally created by
Tamarack Associates
Fri, 29 Mar 2024 10:58:58 UTC
Copyright © 2009-2024
HREF Tools Corp.