If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > unable to load libmysql.dll

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-19-02, 15:00
bava bava is offline
Registered User
 
Join Date: Nov 2002
Posts: 2
unable to load libmysql.dll

Hi there,

I'm new to Delphi. When starting to write my first database application ( which uses mySQL ) I already encountered the following problem: whenever I put the Connected property of the TSQLConnection object to true, I get an error saying "unable to load LIBMYSQL.DLL".

Can anyone tell me what causes this?

Thnx in advance!
Reply With Quote
  #2 (permalink)  
Old 11-19-02, 18:20
vududoc vududoc is offline
Registered User
 
Join Date: Jul 2001
Location: NC
Posts: 102
Bava -

I use VB6 and mySQL in Windows. Answering these questions may help you find what your problem is:
1) Do you have the dll on your machine?
2) Do you have the correct version of the dll?
3) Is the dll in the directory that mySQL says it should be in?
4) Does Delphi know where to find the dll?
5) Do you have to register the dll?
Reply With Quote
  #3 (permalink)  
Old 11-21-02, 14:07
bava bava is offline
Registered User
 
Join Date: Nov 2002
Posts: 2
I'm also using Delphi 6 & Windows (2000).
Maenwhile this problem is already solved: seams that it was already answered somewhere else in this forum.

The solution was to put the dll in the c:\winnt directroy. My guess is that Delphi searches only specific directories for dll's?

Don't know if this is the best solution but it works.

BTW: what do you mean by "registering the dll"?

Anywayz, thanx a lot!
Reply With Quote
  #4 (permalink)  
Old 11-21-02, 23:41
rnealejr rnealejr is offline
Registered User
 
Join Date: Feb 2002
Posts: 2,232
There is a command in windows called regsvr32 which allows you to register dlls - usually you use this when an installation is corrupted or when you need to reference a dll that has not been registered.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On