Delphi 6 connection error - Mysql 4.1 - libmysql.dll - Windows 8

Asked

Viewed 593 times

2

Hello. Many should already have seen similar posts about this doubt, but I’ve done all the suggested actions, and it does not wheel.

I need to connect Delphi6 in Mysql 4.1 (I cannot use other versions) it has to be these due to the server that runs the system at the moment. Maybe Mysql 4.0, but Delphi has to be 6.

When I use Sqlconnection (already tried with third party components too) always gives error Unable to load libmysql.dll

I downloaded some versions of dll, put in the folders of Windows System32, Syswow64, in Delphi BIN folder, in the folder where the Delphi project is, configured the path of some of these folders as Delphi 6 environment variable, but nothing works.

I wonder how to identify if the dll I have and the right one, and where I set this up in Delphi, or Windows, etc.

Thank you

  • But you don’t need to copy things in system32, you usually "glue" in the Delphi folder. At least in most of the software I use (I don’t work with Delphi, I can’t say), we usually put the dlls in the same folder, or in a folder indicated. But if they really indicate to put the system32 then the problem might be the version of Delphi, you might be using a 64bit version then you would have to download the dll to 64bit and paste in the folder SysWoW64 instead of system32. Note a dll must also be 64bit if Delphi is 64bit.

  • Buddy, try looking here: https://claudiocoelho.wordpress.com/2009/09/11/delphi-7-mysql-5-unable-to-load-libmysql-dll/

  • Here’s another tip: http://stackoverflow.com/questions/1951319/unable-to-load-libmysql-dll

  • I ran past suggestions, and even installed a virtual machine with XP, but it doesn’t run at all. even using libmysql.dll that comes bundled with the database installation, does not run. Thanks if anyone has any more suggestions.

  • What is the size of your dll. I have a system made in Delphi 6 with mysql 4.1 and also hit me to run. It was only with the dll I have today, from 212KB.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.